Small reader fixes

This commit is contained in:
Jobobby04 2021-07-04 14:10:25 -04:00
parent 3bdd508a81
commit 74c94b9879
2 changed files with 15 additions and 3 deletions

View File

@ -479,7 +479,7 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
binding.readerSeekbar, binding.readerSeekbar,
binding.rightChapter, binding.rightChapter,
// SY --> // SY -->
binding.pageSeekbarVert, binding.readerSeekbarVert,
binding.aboveChapter, binding.aboveChapter,
binding.belowChapter binding.belowChapter
// SY <-- // SY <--
@ -492,7 +492,10 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
window.navigationBarColor = toolbarColor window.navigationBarColor = toolbarColor
} }
(binding.toolbar.background as MaterialShapeDrawable).fillColor = ColorStateList.valueOf(toolbarColor) // SY -->
binding.toolbar.background.alpha = 0
(binding.header.background as MaterialShapeDrawable).fillColor = ColorStateList.valueOf(toolbarColor)
// SY <--
// Set initial visibility // Set initial visibility
setMenuVisibility(menuVisible) setMenuVisibility(menuVisible)

View File

@ -175,7 +175,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:orientation="horizontal" android:orientation="horizontal"
app:layout_constraintBottom_toTopOf="@id/reader_menu_bottom" app:layout_constraintBottom_toTopOf="@id/below_guideline"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/above_guideline" app:layout_constraintTop_toBottomOf="@id/above_guideline"
@ -207,6 +207,7 @@
app:tint="?attr/colorOnPrimary" /> app:tint="?attr/colorOnPrimary" />
<LinearLayout <LinearLayout
android:id="@+id/reader_seekbar_vert"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/reader_seekbar_background" android:background="@drawable/reader_seekbar_background"
@ -277,6 +278,14 @@
</RelativeLayout> </RelativeLayout>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/below_guideline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.85"
app:layout_constraintBottom_toTopOf="@id/reader_menu_bottom"/>
<LinearLayout <LinearLayout
android:id="@+id/reader_menu_bottom" android:id="@+id/reader_menu_bottom"
android:layout_width="match_parent" android:layout_width="match_parent"