diff options
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/presentation/view')
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchAnimeActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailSearchAnimeActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchMangaActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailSearchMangaActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopAnimeActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailTopAnimeActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopMangaActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailTopMangaActivity.kt) | 6 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/MainActivity.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchAnimeAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimeAdapter.kt) | 5 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchMangaAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaAdapter.kt) | 5 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopAnimeAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimeAdapter.kt) | 5 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopMangaAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaAdapter.kt) | 5 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/HomePage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt) | 2 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchAnimeFragment.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimePage.kt) | 12 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchMangaFragment.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaPage.kt) | 11 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimePage.kt) | 9 | ||||
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopMangaFragment.kt (renamed from app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaPage.kt) | 9 |
14 files changed, 49 insertions, 40 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailSearchAnimeActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchAnimeActivity.kt index 5acf1c3..1b015b6 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailSearchAnimeActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchAnimeActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.anime +package xyz.adjutor.aniki.presentation.view.activity import android.os.Bundle import android.widget.ImageView @@ -8,8 +8,8 @@ import androidx.appcompat.app.AppCompatActivity import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.anime.DetailSearchAnimeController -import xyz.adjutor.aniki.presentation.model.anime.AnimeResponse +import xyz.adjutor.aniki.presentation.controller.DetailSearchAnimeController +import xyz.adjutor.aniki.presentation.model.response.AnimeResponse class DetailSearchAnimeActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailSearchMangaActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchMangaActivity.kt index 83beb9b..5e57c5a 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailSearchMangaActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchMangaActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.manga +package xyz.adjutor.aniki.presentation.view.activity import android.os.Bundle import android.widget.ImageView @@ -8,8 +8,8 @@ import androidx.appcompat.app.AppCompatActivity import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.manga.DetailSearchMangaController -import xyz.adjutor.aniki.presentation.model.manga.MangaResponse +import xyz.adjutor.aniki.presentation.controller.DetailSearchMangaController +import xyz.adjutor.aniki.presentation.model.response.MangaResponse class DetailSearchMangaActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailTopAnimeActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopAnimeActivity.kt index b8cf505..5902e94 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailTopAnimeActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopAnimeActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.anime +package xyz.adjutor.aniki.presentation.view.activity import android.os.Bundle import android.widget.ImageView @@ -8,8 +8,8 @@ import androidx.appcompat.app.AppCompatActivity import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.anime.DetailTopAnimeController -import xyz.adjutor.aniki.presentation.model.anime.AnimeResponse +import xyz.adjutor.aniki.presentation.controller.DetailTopAnimeController +import xyz.adjutor.aniki.presentation.model.response.AnimeResponse class DetailTopAnimeActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailTopMangaActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopMangaActivity.kt index 2a4b28b..3e70acc 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailTopMangaActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopMangaActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.manga +package xyz.adjutor.aniki.presentation.view.activity import android.os.Bundle import android.widget.ImageView @@ -8,8 +8,8 @@ import androidx.appcompat.app.AppCompatActivity import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.manga.DetailTopMangaController -import xyz.adjutor.aniki.presentation.model.manga.MangaResponse +import xyz.adjutor.aniki.presentation.controller.DetailTopMangaController +import xyz.adjutor.aniki.presentation.model.response.MangaResponse class DetailTopMangaActivity : AppCompatActivity() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/MainActivity.kt index e58737a..3a50028 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/MainActivity.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.activity import android.os.Bundle import androidx.appcompat.app.AppCompatActivity diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimeAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchAnimeAdapter.kt index 3bb875b..8d828d3 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimeAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchAnimeAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.anime +package xyz.adjutor.aniki.presentation.view.adapter import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,8 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.anime.SearchAnime +import xyz.adjutor.aniki.presentation.model.SearchAnime +import xyz.adjutor.aniki.presentation.view.activity.DetailSearchAnimeActivity class SearchAnimeAdapter(private val animeList: List<SearchAnime>) : RecyclerView.Adapter<SearchAnimeAdapter.AnimeViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchMangaAdapter.kt index c0813c8..ab99bce 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchMangaAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.manga +package xyz.adjutor.aniki.presentation.view.adapter import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,8 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.manga.SearchManga +import xyz.adjutor.aniki.presentation.model.SearchManga +import xyz.adjutor.aniki.presentation.view.activity.DetailSearchMangaActivity class SearchMangaAdapter(private val mangaList: List<SearchManga>) : RecyclerView.Adapter<SearchMangaAdapter.MangaViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimeAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopAnimeAdapter.kt index 0529c26..ee0df14 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimeAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopAnimeAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.anime +package xyz.adjutor.aniki.presentation.view.adapter import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,8 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.anime.TopAnime +import xyz.adjutor.aniki.presentation.model.TopAnime +import xyz.adjutor.aniki.presentation.view.activity.DetailTopAnimeActivity class TopAnimeAdapter(private val animeList: List<TopAnime>) : RecyclerView.Adapter<TopAnimeAdapter.AnimeViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopMangaAdapter.kt index 5ab1713..dc4380d 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaAdapter.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopMangaAdapter.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.manga +package xyz.adjutor.aniki.presentation.view.adapter import android.content.Intent import android.view.LayoutInflater @@ -11,7 +11,8 @@ import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.model.manga.TopManga +import xyz.adjutor.aniki.presentation.model.TopManga +import xyz.adjutor.aniki.presentation.view.activity.DetailTopMangaActivity class TopMangaAdapter(private val mangaList: List<TopManga>) : RecyclerView.Adapter<TopMangaAdapter.MangaViewHolder>() { diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/HomePage.kt index f2abca1..d8d271c 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/HomePage.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view +package xyz.adjutor.aniki.presentation.view.fragment import android.os.Bundle import android.view.LayoutInflater diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimePage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchAnimeFragment.kt index 764601f..29b6c53 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchAnimeFragment.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.anime +package xyz.adjutor.aniki.presentation.view.fragment import android.content.Context import android.os.Bundle @@ -16,11 +16,13 @@ import androidx.recyclerview.widget.RecyclerView import com.google.android.material.snackbar.Snackbar import com.google.android.material.textfield.TextInputEditText import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.anime.SearchAnimeController -import xyz.adjutor.aniki.presentation.model.anime.SearchAnime -import xyz.adjutor.aniki.presentation.view.MainActivity +import xyz.adjutor.aniki.presentation.controller.SearchAnimeController +import xyz.adjutor.aniki.presentation.model.SearchAnime +import xyz.adjutor.aniki.presentation.view.activity.MainActivity +import xyz.adjutor.aniki.presentation.view.adapter.SearchAnimeAdapter -class SearchAnimePage : Fragment() { + +class SearchAnimeFragment : Fragment() { lateinit var controller: SearchAnimeController diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchMangaFragment.kt index b6ae2bb..4ad6e89 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaPage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchMangaFragment.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.manga +package xyz.adjutor.aniki.presentation.view.fragment import android.content.Context import android.os.Bundle @@ -16,12 +16,13 @@ import androidx.recyclerview.widget.RecyclerView import com.google.android.material.snackbar.Snackbar import com.google.android.material.textfield.TextInputEditText import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.manga.SearchMangaController -import xyz.adjutor.aniki.presentation.model.manga.SearchManga -import xyz.adjutor.aniki.presentation.view.MainActivity +import xyz.adjutor.aniki.presentation.controller.SearchMangaController +import xyz.adjutor.aniki.presentation.model.SearchManga +import xyz.adjutor.aniki.presentation.view.activity.MainActivity +import xyz.adjutor.aniki.presentation.view.adapter.SearchMangaAdapter -class SearchMangaPage : Fragment() { +class SearchMangaFragment : Fragment() { lateinit var controller: SearchMangaController diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimePage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt index 5453154..56f7a49 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.anime +package xyz.adjutor.aniki.presentation.view.fragment import android.os.Bundle import android.view.LayoutInflater @@ -12,11 +12,12 @@ import androidx.recyclerview.widget.RecyclerView import androidx.swiperefreshlayout.widget.SwipeRefreshLayout import com.google.android.material.snackbar.Snackbar import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.anime.TopAnimeController -import xyz.adjutor.aniki.presentation.model.anime.TopAnime +import xyz.adjutor.aniki.presentation.controller.TopAnimeController +import xyz.adjutor.aniki.presentation.model.TopAnime +import xyz.adjutor.aniki.presentation.view.adapter.TopAnimeAdapter //view -class TopAnimePage : Fragment() { +class TopAnimeFragment : Fragment() { lateinit var controller: TopAnimeController diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopMangaFragment.kt index 98eb0dd..7821e50 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaPage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopMangaFragment.kt @@ -1,4 +1,4 @@ -package xyz.adjutor.aniki.presentation.view.manga +package xyz.adjutor.aniki.presentation.view.fragment import android.os.Bundle import android.view.LayoutInflater @@ -12,11 +12,12 @@ import androidx.recyclerview.widget.RecyclerView import androidx.swiperefreshlayout.widget.SwipeRefreshLayout import com.google.android.material.snackbar.Snackbar import xyz.adjutor.aniki.R -import xyz.adjutor.aniki.presentation.controller.manga.TopMangaController -import xyz.adjutor.aniki.presentation.model.manga.TopManga +import xyz.adjutor.aniki.presentation.controller.TopMangaController +import xyz.adjutor.aniki.presentation.model.TopManga +import xyz.adjutor.aniki.presentation.view.adapter.TopMangaAdapter //view -class TopMangaPage : Fragment() { +class TopMangaFragment : Fragment() { lateinit var controller: TopMangaController |