Better blending of chapter list when expaning reader chapter sheet

This commit is contained in:
Jay 2020-05-08 02:18:57 -04:00
parent 729f984413
commit 6ba29d32d8
3 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/fullRippleColor">
<item android:id="@android:id/mask">
<color android:color="@color/fullRippleColor" />
</item>
<item>
<selector>
<item android:state_selected="true">
<color android:color="@color/fullRippleColor" />
</item>
<item android:state_activated="true">
<color android:color="@color/fullRippleColor" />
</item>
<item android:id="@android:id/mask">
<color android:color="@android:color/transparent" />
</item>
</selector>
</item>
</ripple>

View File

@ -4,7 +4,7 @@
android:id="@+id/reader_chapter_layout" android:id="@+id/reader_chapter_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="60dp"
android:background="@drawable/list_item_selector" android:background="@drawable/transparent_item_selector"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View File

@ -14,6 +14,8 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/topbar_layout" android:id="@+id/topbar_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:clickable="true"
android:focusable="true"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<ImageView <ImageView
@ -77,7 +79,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:alpha="0" android:alpha="0"
android:background="?android:attr/colorBackground" android:background="@android:color/transparent"
android:clipToPadding="false" android:clipToPadding="false"
tools:listitem="@layout/reader_chapter_item" /> tools:listitem="@layout/reader_chapter_item" />
</eu.kanade.tachiyomi.ui.reader.ReaderChapterSheet> </eu.kanade.tachiyomi.ui.reader.ReaderChapterSheet>