summaryrefslogtreecommitdiff
path: root/app/src/main/res/navigation/nav_graph.xml
blob: 63639d857e057152e03b30d8cc9279b759ace615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<navigation 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:id="@+id/nav_graph"
    app:startDestination="@id/HomePage">

    <fragment
        android:id="@+id/HomePage"
        android:name="xyz.adjutor.aniki.presentation.view.HomePage"
        android:label="@string/home_page_label"
        tools:layout="@layout/home_page">

        <action
            android:id="@+id/action_HomePage_to_TopMangaPage"
            app:destination="@id/TopMangaPage" />
        <action
            android:id="@+id/action_HomePage_to_TopAnimePage"
            app:destination="@id/TopAnimePage" />
        <action
            android:id="@+id/action_HomePage_to_SearchMangaPage"
            app:destination="@id/SearchMangaPage" />
        <action
            android:id="@+id/action_HomePage_to_SearchAnimePage"
            app:destination="@id/SearchAnimePage" />

    </fragment>

    <fragment
        android:id="@+id/TopMangaPage"
        android:name="xyz.adjutor.aniki.presentation.view.manga.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>
    <fragment
        android:id="@+id/TopAnimePage"
        android:name="xyz.adjutor.aniki.presentation.view.anime.TopAnimePage"
        android:label="@string/top_anime_page_label"
        tools:layout="@layout/top_anime_page">

        <action
            android:id="@+id/action_TopAnimePage_to_HomePage"
            app:destination="@id/HomePage" />
    </fragment>
    <fragment
        android:id="@+id/SearchMangaPage"
        android:name="xyz.adjutor.aniki.presentation.view.manga.SearchMangaPage"
        android:label="@string/search_manga_page_label"
        tools:layout="@layout/search_manga_page">

        <action
            android:id="@+id/action_SearchMangaPage_to_HomePage"
            app:destination="@id/HomePage" />
    </fragment>
    <fragment
        android:id="@+id/SearchAnimePage"
        android:name="xyz.adjutor.aniki.presentation.view.anime.SearchAnimePage"
        android:label="@string/search_anime_page_label"
        tools:layout="@layout/search_anime_page">

        <action
            android:id="@+id/action_SearchAnimePage_to_HomePage"
            app:destination="@id/HomePage" />
    </fragment>

</navigation>