diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/article_page.xml | 29 | ||||
-rw-r--r-- | app/src/main/res/layout/top_manga_page.xml | 29 | ||||
-rw-r--r-- | app/src/main/res/navigation/nav_graph.xml | 30 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 6 |
4 files changed, 92 insertions, 2 deletions
diff --git a/app/src/main/res/layout/article_page.xml b/app/src/main/res/layout/article_page.xml new file mode 100644 index 0000000..58674de --- /dev/null +++ b/app/src/main/res/layout/article_page.xml @@ -0,0 +1,29 @@ +<?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=".ArticlePage" + android:background="@color/very_dark_purple" + > + + <TextView + android:id="@+id/textview_second" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:layout_constraintBottom_toTopOf="@id/home" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <Button + android:id="@+id/home" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/home" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/textview_second" /> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/top_manga_page.xml b/app/src/main/res/layout/top_manga_page.xml new file mode 100644 index 0000000..6a2f86b --- /dev/null +++ b/app/src/main/res/layout/top_manga_page.xml @@ -0,0 +1,29 @@ +<?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=".TopMangaPage" + android:background="@color/very_dark_purple" + > + + <TextView + android:id="@+id/textview_second" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:layout_constraintBottom_toTopOf="@id/home" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <Button + android:id="@+id/home" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/home" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/textview_second" /> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml index 78eb7f0..d8d3b26 100644 --- a/app/src/main/res/navigation/nav_graph.xml +++ b/app/src/main/res/navigation/nav_graph.xml @@ -14,7 +14,14 @@ <action android:id="@+id/action_HomePage_to_NewsPage" app:destination="@id/NewsPage" /> + <action + android:id="@+id/action_HomePage_to_ArticlePage" + app:destination="@id/ArticlePage" /> + <action + android:id="@+id/action_HomePage_to_TopMangaPage" + app:destination="@id/TopMangaPage" /> </fragment> + <fragment android:id="@+id/NewsPage" android:name="xyz.adjutor.aniki.NewsPage" @@ -25,4 +32,27 @@ android:id="@+id/action_NewsPage_to_HomePage" app:destination="@id/HomePage" /> </fragment> + + <fragment + android:id="@+id/ArticlePage" + android:name="xyz.adjutor.aniki.ArticlePage" + android:label="@string/article_page_label" + tools:layout="@layout/article_page"> + + <action + android:id="@+id/action_ArticlePage_to_HomePage" + app:destination="@id/HomePage" /> + </fragment> + + <fragment + android:id="@+id/TopMangaPage" + android:name="xyz.adjutor.aniki.TopMangaPage" + android:label="@string/top_manga_page_label" + tools:layout="@layout/top_manga_page"> + + <action + android:id="@+id/action_TopMangaPage_to_HomePage" + app:destination="@id/HomePage" /> + </fragment> + </navigation>
\ 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 b0be6b2..e076855 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,6 +9,8 @@ <string name="article">Article</string> <string name="top_manga">Top Manga</string> <string name="home">Home</string> - <string name="home_page_label">First Fragment</string> - <string name="news_page_label">Second Fragment</string> + <string name="home_page_label">Home Page</string> + <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> </resources>
\ No newline at end of file |