aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-18 21:55:37 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-18 21:55:37 +0100
commiteaef2672c25baaf370c72158d5236f40f6fea01f (patch)
tree658ee831fc5db15dae455d013cf13ec263faa177 /app/src/main/res
parentf4d8a9c6fa8f805a9dedb626ef343aa37943c079 (diff)
Preparing
Preparing the implementation of the API datas to our recycerview in a fragment.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_layout.xml33
-rw-r--r--app/src/main/res/values/strings.xml2
2 files changed, 23 insertions, 12 deletions
diff --git a/app/src/main/res/layout/item_layout.xml b/app/src/main/res/layout/item_layout.xml
index 8500bc7..eb65d60 100644
--- a/app/src/main/res/layout/item_layout.xml
+++ b/app/src/main/res/layout/item_layout.xml
@@ -29,17 +29,28 @@
android:src="@mipmap/ic_launcher_round"
android:contentDescription="@string/rv_image" />
- <TextView
- android:id="@+id/tv_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:layout_constraintStart_toEndOf="@id/iv_image"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"
- android:text="@string/rv_title"
- android:textColor="@color/strong_pink"
- android:textSize="20sp"/>
+ <TextView
+ android:id="@+id/tv_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintStart_toEndOf="@id/iv_image"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:text="@string/rv_title"
+ android:textColor="@color/strong_pink"
+ android:textSize="30sp"/>
+
+ <TextView
+ android:id="@+id/tv_rank"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@color/very_dark_purple"
+ android:text="@string/rv_rank"
+ android:textColor="@color/slightly_desaturated_magenta"
+ android:textSize="20sp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ccd2ae8..5301008 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -13,7 +13,7 @@
<string name="article_page_label">Article Page</string>
<string name="top_manga_page_label">Top Manga Page</string>
<string name="rv_title">Title</string>
- <string name="rv_description">This is a description</string>
+ <string name="rv_rank">0</string>
<string name="rv_image">image</string>
<string name="manga_image_content_description">Image of manga</string>