Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb640da2 authored by Fengjiang Li's avatar Fengjiang Li
Browse files

[Predictive Back] Widget to home polish: show extra rows at bottom during animation

1. setClipChildren(false) for WidgetFullSheet and content view during animation
2. setClipToOutline(true) for WidgetsRecyclerView and provide ViewOutlineProvider to expand bottom by 5% of height
3. Override calculateExtraLayoutSpace() for ScrollableLayoutManager
4. Manually modify AbstractSlideInView#mContent's background drawable during scale animation

bug: b/260956481
Test: manual

Change-Id: Ic391639de887cf4a70bc4965dc0b1fd9bc12dd2c
parent 740541e0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@
        android:id="@+id/widgets_bottom_sheet"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/bg_rounded_corner_bottom_sheet"
        android:paddingTop="@dimen/bottom_sheet_handle_margin"
        android:orientation="vertical">
        <View
+0 −1
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/bg_widgets_full_sheet"
        android:focusable="true"
        android:importantForAccessibility="no">

+0 −1
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/bg_widgets_full_sheet"
        android:focusable="true"
        android:importantForAccessibility="no">

+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
        android:layout_height="wrap_content"
        android:layout_below="@id/collapse_handle"
        android:paddingBottom="0dp"
        android:clipToOutline="true"
        android:orientation="vertical">

        <TextView
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@
            android:id="@+id/search_and_recommendations_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:clipToOutline="true"
            android:orientation="vertical">

            <FrameLayout
Loading