summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md27
-rw-r--r--app/src/main/AndroidManifest.xml4
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/topanime/DetailTopAnimeActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/topanime/RestTopAnimeResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnime.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimeAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeAdapter.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimeApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeApi.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimePage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimePage.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/topmanga/DetailTopMangaActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/topmanga/RestTopMangaResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopManga.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaApi.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaPage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt)2
-rw-r--r--app/src/main/res/layout/activity_detail_top_anime.xml3
-rw-r--r--app/src/main/res/layout/activity_detail_top_manga.xml3
-rw-r--r--app/src/main/res/layout/top_anime_page.xml2
-rw-r--r--app/src/main/res/layout/top_manga_page.xml2
-rw-r--r--app/src/main/res/navigation/nav_graph.xml4
19 files changed, 49 insertions, 20 deletions
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.
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 09802b7..c24711c 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -14,11 +14,11 @@
android:theme="@style/Theme.Aniki"
tools:ignore="AllowBackup">
<activity
- android:name=".topmanga.DetailTopMangaActivity"
+ android:name="xyz.adjutor.aniki.manga.topmanga.DetailTopMangaActivity"
android:label="Details"
android:theme="@style/Theme.Aniki" />
<activity
- android:name=".topanime.DetailTopAnimeActivity"
+ android:name="xyz.adjutor.aniki.anime.topanime.DetailTopAnimeActivity"
android:label="Details"
android:theme="@style/Theme.Aniki" />
<activity
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/DetailTopAnimeActivity.kt
index 3f1d008..0db1ca1 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/DetailTopAnimeActivity.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topanime
+package xyz.adjutor.aniki.anime.topanime
import android.content.Context
import android.content.SharedPreferences
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/RestTopAnimeResponse.kt
index 0bd1354..edc11cf 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/RestTopAnimeResponse.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/RestTopAnimeResponse.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topanime
+package xyz.adjutor.aniki.anime.topanime
import com.google.gson.annotations.SerializedName
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnime.kt
index 1764878..f8093f6 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnime.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnime.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topanime
+package xyz.adjutor.aniki.anime.topanime
import com.google.gson.annotations.SerializedName
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimeAdapter.kt
index e5a2bb5..bda6ec5 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeAdapter.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimeAdapter.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topanime
+package xyz.adjutor.aniki.anime.topanime
import android.content.Intent
import android.view.LayoutInflater
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeApi.kt b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimeApi.kt
index bea4c63..a5b3b59 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimeApi.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimeApi.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topanime
+package xyz.adjutor.aniki.anime.topanime
import retrofit2.Call
import retrofit2.http.GET
diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimePage.kt b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimePage.kt
index 91a33ef..efa45dd 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topanime/TopAnimePage.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/anime/topanime/TopAnimePage.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topanime
+package xyz.adjutor.aniki.anime.topanime
import android.content.Context
import android.content.SharedPreferences
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/DetailTopMangaActivity.kt
index 2b1fac4..0d0d4b5 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/DetailTopMangaActivity.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/DetailTopMangaActivity.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topmanga
+package xyz.adjutor.aniki.manga.topmanga
import android.content.Context
import android.content.SharedPreferences
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/RestTopMangaResponse.kt
index dc7827a..87c5cfb 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/RestTopMangaResponse.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topmanga
+package xyz.adjutor.aniki.manga.topmanga
import com.google.gson.annotations.SerializedName
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopManga.kt
index 05f4692..8d952b3 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopManga.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topmanga
+package xyz.adjutor.aniki.manga.topmanga
import com.google.gson.annotations.SerializedName
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaAdapter.kt
index 0396b3d..a259750 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaAdapter.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topmanga
+package xyz.adjutor.aniki.manga.topmanga
import android.content.Intent
import android.view.LayoutInflater
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaApi.kt
index e8231b0..278c3e1 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaApi.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaApi.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topmanga
+package xyz.adjutor.aniki.manga.topmanga
import retrofit2.Call
import retrofit2.http.GET
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaPage.kt
index c8075b2..d28161a 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/manga/topmanga/TopMangaPage.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki.topmanga
+package xyz.adjutor.aniki.manga.topmanga
import android.content.Context
import android.content.SharedPreferences
diff --git a/app/src/main/res/layout/activity_detail_top_anime.xml b/app/src/main/res/layout/activity_detail_top_anime.xml
index a982bdd..15de318 100644
--- a/app/src/main/res/layout/activity_detail_top_anime.xml
+++ b/app/src/main/res/layout/activity_detail_top_anime.xml
@@ -7,7 +7,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- tools:context=".topanime.DetailTopAnimeActivity">
+ tools:context=".anime.topanime.DetailTopAnimeActivity">
<androidx.cardview.widget.CardView
android:id="@+id/cv_header"
android:layout_width="match_parent"
@@ -243,6 +243,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_text_url"
android:autoLink="all"
+ android:textColorLink="@color/very_light_magenta"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/app/src/main/res/layout/activity_detail_top_manga.xml b/app/src/main/res/layout/activity_detail_top_manga.xml
index 6d069c9..0a8f07b 100644
--- a/app/src/main/res/layout/activity_detail_top_manga.xml
+++ b/app/src/main/res/layout/activity_detail_top_manga.xml
@@ -7,7 +7,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- tools:context=".topmanga.DetailTopMangaActivity">
+ tools:context=".manga.topmanga.DetailTopMangaActivity">
<androidx.cardview.widget.CardView
android:id="@+id/cv_header"
android:layout_width="match_parent"
@@ -297,6 +297,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_text_url"
android:autoLink="all"
+ android:textColorLink="@color/very_light_magenta"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/app/src/main/res/layout/top_anime_page.xml b/app/src/main/res/layout/top_anime_page.xml
index 4bcc377..4f86dc7 100644
--- a/app/src/main/res/layout/top_anime_page.xml
+++ b/app/src/main/res/layout/top_anime_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=".topanime.TopAnimePage"
+ tools:context=".anime.topanime.TopAnimePage"
android:background="@color/very_dark_purple">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
diff --git a/app/src/main/res/layout/top_manga_page.xml b/app/src/main/res/layout/top_manga_page.xml
index 37150f7..ce793af 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=".topmanga.TopMangaPage"
+ tools:context=".manga.topmanga.TopMangaPage"
android:background="@color/very_dark_purple">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml
index 132de49..4ceeab2 100644
--- a/app/src/main/res/navigation/nav_graph.xml
+++ b/app/src/main/res/navigation/nav_graph.xml
@@ -22,7 +22,7 @@
<fragment
android:id="@+id/TopMangaPage"
- android:name="xyz.adjutor.aniki.topmanga.TopMangaPage"
+ android:name="xyz.adjutor.aniki.manga.topmanga.TopMangaPage"
android:label="@string/top_manga_page_label"
tools:layout="@layout/top_manga_page">
@@ -32,7 +32,7 @@
</fragment>
<fragment
android:id="@+id/TopAnimePage"
- android:name="xyz.adjutor.aniki.topanime.TopAnimePage"
+ android:name="xyz.adjutor.aniki.anime.topanime.TopAnimePage"
android:label="@string/top_anime_page_label"
tools:layout="@layout/top_anime_page">