android: improve place page resize animation

Make sure the extended background is the right color
and make animation a bit slower

Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
Arnaud Vergnet 2023-01-24 00:06:01 +01:00 committed by Viktor Govako
parent 77d4c1bef3
commit 27fde7342e
5 changed files with 6 additions and 5 deletions

View file

@ -61,7 +61,8 @@
<RelativeLayout
android:id="@+id/placepage_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:background="?panel" >
<androidx.fragment.app.FragmentContainerView
android:id="@+id/placepage_fragment"
android:layout_width="match_parent"

View file

@ -14,6 +14,5 @@
android:id="@+id/pp__details_frame"
layout="@layout/place_page_details"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?panel" />
android:layout_height="match_parent" />
</LinearLayout>

View file

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?windowBackgroundForced"
android:background="?panel"
android:orientation="vertical">
<include layout="@layout/place_page_fat_shadow"/>

View file

@ -6,6 +6,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="?ppBackground"
android:paddingBottom="@dimen/margin_quarter">
<include

View file

@ -256,7 +256,7 @@ public class PlacePageController implements Initializable<Activity>,
setPlacePageHeightBounds();
}
});
mCustomPeekHeightAnimator.setDuration(100);
mCustomPeekHeightAnimator.setDuration(200);
mCustomPeekHeightAnimator.start();
}