summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-19 20:33:21 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-19 20:33:21 +0100
commit13fdfd28b10cdac6e5b901d3947ba02fa744df4b (patch)
treeae8a23f78c410a6afe9d4d619069d9de103197c7 /app/src/main/res
parent485d3ca989bd4cce1788eae17bcc7587d5ef2c90 (diff)
Adding scores to the recyclerview layout.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_layout.xml13
-rw-r--r--app/src/main/res/values/strings.xml16
2 files changed, 13 insertions, 16 deletions
diff --git a/app/src/main/res/layout/item_layout.xml b/app/src/main/res/layout/item_layout.xml
index 32bea24..8d7a792 100644
--- a/app/src/main/res/layout/item_layout.xml
+++ b/app/src/main/res/layout/item_layout.xml
@@ -26,7 +26,7 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
- android:src="@mipmap/ic_launcher_round"
+ android:src="@mipmap/ic_launcher"
android:contentDescription="@string/rv_image" />
<TextView
@@ -56,6 +56,17 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/tv_title"/>
+ <TextView
+ android:id="@+id/tv_score"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@color/very_dark_purple"
+ android:text="@string/rv_score"
+ android:textColor="@color/slightly_desaturated_magenta"
+ android:textSize="20sp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/tv_title"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 403a883..636de76 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -18,20 +18,6 @@
<string name="manga_image_content_description">Image of manga</string>
<string name="top_anime_page_label">Top Anime Page</string>
<string name="top_anime">Top Anime</string>
-
- <string-array name="manga_array">
- <item>Dragon Ball</item>
- <item>Naruto</item>
- <item>Fairy Tail</item>
- <item>Shokugeki no Souma</item>
- <item>Ajin</item>
- <item>Komi-san no Komyushu</item>
- <item>Hunter x Hunter</item>
- <item>Detective Conan</item>
- <item>Swortd Art Online</item>
- <item>Scumbag Loser</item>
- <item>Ana Satsujin</item>
- <item>Samurai Deeper Kyou</item>
- </string-array>
+ <string name="rv_score">00.00</string>
</resources> \ No newline at end of file