diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_detail_top_manga.xml | 54 | ||||
-rw-r--r-- | app/src/main/res/layout/item_layout.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 8 |
3 files changed, 62 insertions, 9 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 new file mode 100644 index 0000000..3e74697 --- /dev/null +++ b/app/src/main/res/layout/activity_detail_top_manga.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".topmanga.DetailTopMangaActivity" + android:background="@color/very_dark_purple"> + + <ImageView + android:id="@+id/iv_detail_image" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/image" + android:src="@mipmap/ic_launcher" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toStartOf="@id/tv_detail_title" + app:layout_constraintTop_toTopOf="parent" /> + + <TextView + android:id="@+id/tv_detail_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/title" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintEnd_toStartOf="@id/tv_detail_rank" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/iv_detail_image" + android:textColor="@color/slightly_desaturated_magenta"/> + + <TextView + android:id="@+id/tv_detail_rank" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/rank" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintEnd_toStartOf="@id/tv_detail_score" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/tv_detail_title" + android:textColor="@color/slightly_desaturated_magenta"/> + + <TextView + android:id="@+id/tv_detail_score" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/score" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/tv_detail_rank" + android:textColor="@color/slightly_desaturated_magenta"/> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_layout.xml b/app/src/main/res/layout/item_layout.xml index 5ef1c19..f904109 100644 --- a/app/src/main/res/layout/item_layout.xml +++ b/app/src/main/res/layout/item_layout.xml @@ -10,7 +10,6 @@ android:foreground="?selectableItemBackground" app:cardBackgroundColor="@color/black" app:cardCornerRadius="13dp"> - <!--android:onClick="fromListToDetail"--> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" @@ -21,7 +20,7 @@ android:id="@+id/iv_image" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:contentDescription="@string/rv_image" + android:contentDescription="@string/image" android:src="@mipmap/ic_launcher" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -33,7 +32,7 @@ android:layout_height="match_parent" android:layout_marginHorizontal="10sp" android:fontFamily="@font/bangers" - android:text="@string/rv_title" + android:text="@string/title" android:textAlignment="center" android:textColor="@color/strong_pink" android:textSize="30sp" @@ -46,7 +45,7 @@ android:id="@+id/tv_rank" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/rv_rank" + android:text="@string/rank" android:textColor="@color/slightly_desaturated_magenta" android:textSize="20sp" app:layout_constraintBottom_toTopOf="@id/tv_title" @@ -57,7 +56,7 @@ android:id="@+id/tv_score" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/rv_score" + android:text="@string/score" android:textColor="@color/slightly_desaturated_magenta" android:textSize="20sp" app:layout_constraintBottom_toBottomOf="parent" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0a85246..3bcd30b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -8,12 +8,12 @@ <string name="news_page_label">News Page</string> <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_rank">0</string> - <string name="rv_image">image</string> + <string name="title">Title</string> + <string name="rank">0</string> + <string name="image">image</string> <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 name="rv_score">00.00</string> + <string name="score">00.00</string> </resources>
\ No newline at end of file |