From c8a84acbec91678c14e23d8dfed20f26d9d0361e Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 19 Feb 2021 18:30:06 +0100 Subject: Moving TopManga files into their own subdir --- app/src/main/res/layout/top_manga_page.xml | 2 +- app/src/main/res/navigation/nav_graph.xml | 30 +----------------------------- 2 files changed, 2 insertions(+), 30 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/top_manga_page.xml b/app/src/main/res/layout/top_manga_page.xml index ba19596..95c9161 100644 --- a/app/src/main/res/layout/top_manga_page.xml +++ b/app/src/main/res/layout/top_manga_page.xml @@ -5,7 +5,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".TopMangaPage" + tools:context=".topmanga.TopMangaPage" android:background="@color/very_dark_purple"> - - - - - - - - - - - - -- cgit v1.2.3 From 00ac626b27076397b79bcd4bdd934ab861ff05a5 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 19 Feb 2021 19:46:42 +0100 Subject: Implementing TopAnime Copied the topmanga folder and transformed everything in it into top anime. --- app/src/main/java/xyz/adjutor/aniki/HomePage.kt | 4 + .../adjutor/aniki/topanime/RestTopAnimeResponse.kt | 19 +++++ .../java/xyz/adjutor/aniki/topanime/TopAnime.kt | 31 ++++++++ .../xyz/adjutor/aniki/topanime/TopAnimeAdapter.kt | 72 +++++++++++++++++ .../java/xyz/adjutor/aniki/topanime/TopAnimeApi.kt | 11 +++ .../xyz/adjutor/aniki/topanime/TopAnimePage.kt | 93 ++++++++++++++++++++++ app/src/main/res/layout/home_page.xml | 11 +++ app/src/main/res/layout/top_anime_page.xml | 31 ++++++++ app/src/main/res/navigation/nav_graph.xml | 14 ++++ app/src/main/res/values/strings.xml | 2 + 10 files changed, 288 insertions(+) create mode 100644 app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeAdapter.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeApi.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimePage.kt create mode 100644 app/src/main/res/layout/top_anime_page.xml (limited to 'app/src/main/res') diff --git a/app/src/main/java/xyz/adjutor/aniki/HomePage.kt b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt index b6d45c3..59d7c62 100644 --- a/app/src/main/java/xyz/adjutor/aniki/HomePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt @@ -20,8 +20,12 @@ class HomePage : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) + view.findViewById