From 9e1f3503c1a80d7e108f60f9065ae08abb7c2b3f Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 23 Feb 2021 14:53:15 +0100 Subject: Started README and moved the packages. --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..9777d6c --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +List of elements used in top manga and top anime with a recycler view +SwipeRefresh used to refresh the list data. + +Details of a chosen element from the recycler view with an intent object +Title, synopsys and background clickable. +URL link openable. + +Multiple calls of the REST API from jikan.moe. +Usage of : +/v3/top/manga +/v3/top/anime +/v3/manga +/v3/anime + +Data storage with sharedpreferences used for the recycler view of top manga and top anime as well as the details +Saves the detail page of an item when opened, not when the list is shown +Usage of ScrollView in the detail page. Thus, items with long synopsis and background aren't cut down. + +Used my "personal" theme colors for the app. +It consists of colors of the pink/purple "family" : +very dark purple : #09022A +very light magenta : #FF70FF +strong pink : #D52C70 +slightly desaturated magenta : #c583b6 + + +Development done with a Gitflow workflow. -- cgit v1.2.3 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(-) (limited to 'README.md') 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