summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 00:00:12 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 00:00:12 +0100
commit56f69f774bc2a7ef645169f85b89934255c29cf9 (patch)
treef6a41952dc69088d6d9c68b25887c5960ce5cd74 /app/src/main/res
parent94ab3bbeb21049ac1be128ee00dbae1570346123 (diff)
API call and display on DetailTopMangaActivity.kt
Still need to find a way to call with the right ID. Rn, using the id 1 of monster as a "placeholder"
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_detail_top_manga.xml34
-rw-r--r--app/src/main/res/values/strings.xml16
2 files changed, 37 insertions, 13 deletions
diff --git a/app/src/main/res/layout/activity_detail_top_manga.xml b/app/src/main/res/layout/activity_detail_top_manga.xml
index b9a5dd7..ffb9791 100644
--- a/app/src/main/res/layout/activity_detail_top_manga.xml
+++ b/app/src/main/res/layout/activity_detail_top_manga.xml
@@ -104,9 +104,10 @@
android:id="@+id/cv_more_infos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- app:layout_constraintTop_toBottomOf="@id/cv_header"
android:layout_margin="4sp"
- app:cardBackgroundColor="@color/black">
+ app:cardBackgroundColor="@color/black"
+ app:layout_constraintTop_toBottomOf="@id/cv_header">
+
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -120,8 +121,9 @@
android:textColor="@color/strong_pink"
app:layout_constraintBottom_toBottomOf="@id/tv_volumes"
app:layout_constraintEnd_toStartOf="@id/tv_volumes"
- app:layout_constraintTop_toTopOf="@id/tv_volumes"
- app:layout_constraintStart_toStartOf="parent"/>
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="@id/tv_volumes" />
+
<TextView
android:id="@+id/tv_volumes"
android:layout_width="wrap_content"
@@ -140,6 +142,7 @@
app:layout_constraintBottom_toBottomOf="@id/tv_chapters"
app:layout_constraintEnd_toStartOf="@id/tv_chapters"
app:layout_constraintTop_toTopOf="@id/tv_chapters" />
+
<TextView
android:id="@+id/tv_chapters"
android:layout_width="wrap_content"
@@ -159,6 +162,7 @@
app:layout_constraintBottom_toBottomOf="@id/tv_start_date"
app:layout_constraintEnd_toStartOf="@id/tv_start_date"
app:layout_constraintTop_toTopOf="@id/tv_start_date" />
+
<TextView
android:id="@+id/tv_start_date"
android:layout_width="wrap_content"
@@ -177,6 +181,7 @@
app:layout_constraintBottom_toBottomOf="@id/tv_end_date"
app:layout_constraintEnd_toStartOf="@id/tv_end_date"
app:layout_constraintTop_toTopOf="@id/tv_end_date" />
+
<TextView
android:id="@+id/tv_end_date"
android:layout_width="wrap_content"
@@ -201,6 +206,14 @@
android:layout_height="match_parent"
android:padding="10dp">
+ <TextView
+ android:id="@+id/tv_text_synopsis"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/text_synopsis"
+ android:textColor="@color/strong_pink"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"/>
<TextView
android:id="@+id/tv_synopsis"
android:layout_width="wrap_content"
@@ -210,7 +223,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
+ app:layout_constraintTop_toBottomOf="@id/tv_text_synopsis"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
@@ -226,6 +239,15 @@
android:layout_height="match_parent"
android:padding="10dp">
+
+ <TextView
+ android:id="@+id/tv_text_background"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/text_background"
+ android:textColor="@color/strong_pink"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"/>
<TextView
android:id="@+id/tv_background"
android:layout_width="wrap_content"
@@ -235,7 +257,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
+ app:layout_constraintTop_toBottomOf="@id/tv_text_background"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 100335d..311e39b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -17,17 +17,19 @@
<string name="score">00.00</string>
<string name="synopsis">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</string>
- <string name="text_mal_id">"MAL ID : "</string>
- <string name="text_rank">"Rank : "</string>
- <string name="text_score">"Score : "</string>
+ <string name="text_mal_id">"MAL ID "</string>
+ <string name="text_rank">"Rank "</string>
+ <string name="text_score">"Score "</string>
<string name="volumes">000</string>
- <string name="text_volumes">"Volumes : "</string>
- <string name="text_chapters">"Chapters: "</string>
+ <string name="text_volumes">"Volumes "</string>
+ <string name="text_chapters">"Chapters "</string>
<string name="chapters">0000</string>
- <string name="text_start_date">"Start date : "</string>
- <string name="text_end_date">"End date : "</string>
+ <string name="text_start_date">"Start date "</string>
+ <string name="text_end_date">"End date "</string>
<string name="start_date">Jan 0000</string>
<string name="end_date">Dec 0000</string>
<string name="background">Cras molestie turpis at lorem rutrum vehicula. Fusce rutrum, enim sed laoreet semper, tortor quam semper dui, id bibendum lacus quam vitae neque.</string>
+ <string name="text_synopsis">Synopsis</string>
+ <string name="text_background">Background</string>
</resources> \ No newline at end of file