From c0792522a4ad371b02d0633f7ccf2cbc068fb2e8 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 3 Apr 2020 22:35:50 -0400 Subject: [PATCH] Scrolling manga info view --- .../ui/manga/chapter/ChaptersPresenter.kt | 2 +- .../ui/manga/info/MangaInfoController.kt | 2 +- .../res/layout-land/manga_info_controller.xml | 200 ------------------ .../main/res/layout/manga_info_controller.xml | 198 ++++++++--------- 4 files changed, 95 insertions(+), 307 deletions(-) delete mode 100644 app/src/main/res/layout-land/manga_info_controller.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt index 963f50278..e644e5810 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt @@ -14,6 +14,7 @@ import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter import eu.kanade.tachiyomi.util.chapter.syncChaptersWithSource import eu.kanade.tachiyomi.util.lang.isNullOrUnsubscribed +import java.util.Date import rx.Observable import rx.Subscription import rx.android.schedulers.AndroidSchedulers @@ -21,7 +22,6 @@ import rx.schedulers.Schedulers import timber.log.Timber import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get -import java.util.Date /** * Presenter of [ChaptersController]. diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt index 5fa761f47..e637da8cb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt @@ -54,11 +54,11 @@ import eu.kanade.tachiyomi.ui.webview.WebViewActivity import eu.kanade.tachiyomi.util.lang.truncateCenter import eu.kanade.tachiyomi.util.system.toast import eu.kanade.tachiyomi.util.view.snack +import java.text.DateFormat import jp.wasabeef.glide.transformations.CropSquareTransformation import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get import uy.kohesive.injekt.injectLazy -import java.text.DateFormat /** * Fragment that shows manga information. diff --git a/app/src/main/res/layout-land/manga_info_controller.xml b/app/src/main/res/layout-land/manga_info_controller.xml deleted file mode 100644 index a8f2a33d7..000000000 --- a/app/src/main/res/layout-land/manga_info_controller.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/manga_info_controller.xml b/app/src/main/res/layout/manga_info_controller.xml index eb4be06b0..948bae933 100644 --- a/app/src/main/res/layout/manga_info_controller.xml +++ b/app/src/main/res/layout/manga_info_controller.xml @@ -7,77 +7,76 @@ android:layout_height="match_parent" tools:context="eu.kanade.tachiyomi.ui.source.browse.BrowseSourceController"> - - + - + - + - + - + - + + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_marginStart="0dp" + android:layout_marginTop="16dp" + android:layout_marginEnd="16dp" + android:layout_marginBottom="16dp" + app:layout_constraintBottom_toTopOf="@+id/guideline" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="@+id/guideline2" + app:layout_constraintTop_toTopOf="parent"> - - - - - + + android:textIsSelectable="false" + app:layout_constraintBottom_toTopOf="@id/manga_genres_tags" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/manga_summary_label" /> - + - + - +