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 ++++++++++++++++++++++ 6 files changed, 230 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 (limited to 'app/src/main/java/xyz') 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