From f9f079eea806454d49d6088089511d72e1c28f86 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 2 Mar 2021 09:13:54 +0100 Subject: Cleaning up the code. --- README.md | 2 +- app/src/main/java/xyz/adjutor/aniki/HomePage.kt | 6 +- .../xyz/adjutor/aniki/anime/RestAnimeResponse.kt | 3 +- .../aniki/anime/topanime/DetailTopAnimeActivity.kt | 36 +- .../xyz/adjutor/aniki/anime/topanime/TopAnime.kt | 10 +- .../aniki/anime/topanime/TopAnimeAdapter.kt | 35 +- .../adjutor/aniki/anime/topanime/TopAnimePage.kt | 50 +- .../xyz/adjutor/aniki/manga/RestMangaResponse.kt | 5 +- .../aniki/manga/topmanga/DetailTopMangaActivity.kt | 40 +- .../xyz/adjutor/aniki/manga/topmanga/TopManga.kt | 10 +- .../aniki/manga/topmanga/TopMangaAdapter.kt | 35 +- .../adjutor/aniki/manga/topmanga/TopMangaPage.kt | 61 ++- .../main/res/layout/activity_detail_top_anime.xml | 479 ++++++++--------- .../main/res/layout/activity_detail_top_manga.xml | 582 +++++++++++---------- app/src/main/res/layout/activity_main.xml | 3 +- app/src/main/res/layout/home_page.xml | 16 +- app/src/main/res/layout/top_anime_page.xml | 31 +- app/src/main/res/layout/top_manga_page.xml | 31 +- 18 files changed, 745 insertions(+), 690 deletions(-) diff --git a/README.md b/README.md index 9777d6c..d2c01dd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ List of elements used in top manga and top anime with a recycler view -SwipeRefresh used to refresh the list data. +SwipeRefresh used to refresh the list of data. Details of a chosen element from the recycler view with an intent object Title, synopsys and background clickable. diff --git a/app/src/main/java/xyz/adjutor/aniki/HomePage.kt b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt index 734e917..b7c1d0e 100644 --- a/app/src/main/java/xyz/adjutor/aniki/HomePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt @@ -11,8 +11,8 @@ import androidx.navigation.fragment.findNavController class HomePage : Fragment() { override fun onCreateView( - inflater: LayoutInflater, container: ViewGroup?, - savedInstanceState: Bundle? + inflater: LayoutInflater, container: ViewGroup?, + savedInstanceState: Bundle? ): View? { // Inflate the layout for this fragment return inflater.inflate(R.layout.home_page, container, false) @@ -20,7 +20,7 @@ class HomePage : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - + view.findViewById