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') 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