summaryrefslogtreecommitdiff
path: root/app/src/main/res/navigation/nav_graph.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/navigation/nav_graph.xml')
-rw-r--r--app/src/main/res/navigation/nav_graph.xml56
1 files changed, 43 insertions, 13 deletions
diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml
index 5441348..d8d3b26 100644
--- a/app/src/main/res/navigation/nav_graph.xml
+++ b/app/src/main/res/navigation/nav_graph.xml
@@ -3,26 +3,56 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/nav_graph"
- app:startDestination="@id/FirstFragment">
+ app:startDestination="@id/HomePage">
<fragment
- android:id="@+id/FirstFragment"
- android:name="xyz.adjutor.aniki.FirstFragment"
- android:label="@string/first_fragment_label"
- tools:layout="@layout/fragment_first">
+ android:id="@+id/HomePage"
+ android:name="xyz.adjutor.aniki.HomePage"
+ android:label="@string/home_page_label"
+ tools:layout="@layout/home_page">
<action
- android:id="@+id/action_FirstFragment_to_SecondFragment"
- app:destination="@id/SecondFragment" />
+ 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"
+ android:label="@string/news_page_label"
+ tools:layout="@layout/news_page">
+
+ <action
+ android:id="@+id/action_NewsPage_to_HomePage"
+ app:destination="@id/HomePage" />
</fragment>
+
<fragment
- android:id="@+id/SecondFragment"
- android:name="xyz.adjutor.aniki.SecondFragment"
- android:label="@string/second_fragment_label"
- tools:layout="@layout/fragment_second">
+ 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_SecondFragment_to_FirstFragment"
- app:destination="@id/FirstFragment" />
+ 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