Library front view has a rounded top when backdrop is exposed
This commit is contained in:
parent
a66327abbf
commit
97367f0558
2 changed files with 30 additions and 14 deletions
|
@ -800,6 +800,7 @@ class LibraryController(
|
|||
val translateY = if (show) full else 0f
|
||||
recycler.animate().translationY(translateY).start()
|
||||
category_hopper_frame.animate().translationY(translateY).start()
|
||||
recycler_shadow.animate().translationY(translateY + 12.dpToPx).start()
|
||||
recycler_cover.animate().translationY(translateY).start()
|
||||
recycler_cover.animate().alpha(if (show) 0.75f else 0f).start()
|
||||
recycler.suppressLayout(show)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<FrameLayout
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/recycler_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
@ -26,7 +26,10 @@
|
|||
android:id="@+id/category_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="?actionBarSize" >
|
||||
android:layout_marginTop="?actionBarSize"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<eu.kanade.tachiyomi.ui.library.category.CategoryRecyclerView
|
||||
android:id="@+id/category_recycler"
|
||||
|
@ -39,26 +42,38 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="8dp"
|
||||
android:alpha="0.1"
|
||||
android:background="@drawable/shape_gradient_top_shadow"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<include layout="@layout/library_grid_recycler" />
|
||||
<View
|
||||
android:id="@+id/recycler_shadow"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:alpha="0.25"
|
||||
android:background="@drawable/shape_gradient_top_shadow"
|
||||
android:translationY="12dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/recycler"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<include
|
||||
layout="@layout/library_grid_recycler"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<View
|
||||
android:id="@+id/recycler_cover"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:alpha="0"
|
||||
android:background="?android:colorBackground" />
|
||||
</FrameLayout>
|
||||
android:background="@drawable/bottom_sheet_rounded_background"
|
||||
android:backgroundTint="?android:textColorPrimaryInverse"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
|
|
Reference in a new issue