diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/home_page.xml | 11 | ||||
-rw-r--r-- | app/src/main/res/layout/search_manga_page.xml | 36 | ||||
-rw-r--r-- | app/src/main/res/navigation/nav_graph.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 |
4 files changed, 62 insertions, 0 deletions
diff --git a/app/src/main/res/layout/home_page.xml b/app/src/main/res/layout/home_page.xml index 6456dfc..9a3ffdf 100644 --- a/app/src/main/res/layout/home_page.xml +++ b/app/src/main/res/layout/home_page.xml @@ -40,4 +40,15 @@ app:layout_constraintStart_toEndOf="@id/button_top_manga" app:layout_constraintTop_toBottomOf="@id/tv_title" /> + <Button + android:id="@+id/button_search_manga" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/search_manga" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toBottomOf="@id/button_top_manga" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent"/> + + </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/search_manga_page.xml b/app/src/main/res/layout/search_manga_page.xml new file mode 100644 index 0000000..a6de772 --- /dev/null +++ b/app/src/main/res/layout/search_manga_page.xml @@ -0,0 +1,36 @@ +<?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" + android:background="@color/very_dark_purple" + tools:context=".manga.search.SearchMangaPage"> + + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swiperefresh" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view" + android:layout_width="0dp" + android:layout_height="0dp" + android:scrollbars="vertical" + app:layout_constraintBottom_toTopOf="@+id/button_home" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + tools:listitem="@layout/item_layout" /> + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> + + <Button + android:id="@+id/button_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" /> + +</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 4ceeab2..2ee1921 100644 --- a/app/src/main/res/navigation/nav_graph.xml +++ b/app/src/main/res/navigation/nav_graph.xml @@ -17,6 +17,9 @@ <action android:id="@+id/action_HomePage_to_TopAnimePage" app:destination="@id/TopAnimePage" /> + <action + android:id="@+id/action_HomePage_to_SearchMangaPage" + app:destination="@id/SearchMangaPage" /> </fragment> @@ -40,5 +43,15 @@ android:id="@+id/action_TopAnimePage_to_HomePage" app:destination="@id/HomePage" /> </fragment> + <fragment + android:id="@+id/SearchMangaPage" + android:name="xyz.adjutor.aniki.manga.search.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> </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 bb9520a..87630b3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,5 +35,7 @@ <string name="url">https://myanimelist.net/media/id/name</string> <string name="text_episodes">"Episodes "</string> <string name="episodes">0000</string> + <string name="search_manga_page_label">Search Manga Page</string> + <string name="search_manga">Search Manga</string> </resources>
\ No newline at end of file |