ui: further tweak bottom sheet

Switch back to the default MDC-provided animations, just without the
ugly alpha change, and fix any auxillary issues that come with that.
This commit is contained in:
Alexander Capehart
2023-07-12 09:59:53 -06:00
parent 5a5d6d53c2
commit 18d9c0adf0
4 changed files with 22 additions and 47 deletions
@@ -1,25 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2018 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@integer/m3_sys_motion_duration_medium4"
android:interpolator="@interpolator/m3_sys_motion_easing_emphasized">
<translate
android:fromYDelta="100%p"
android:toYDelta="0"/>
<!-- Workaround for ugly default bottom sheet dialog transition -->
<translate
android:fromYDelta="100%p"
android:toYDelta="0" />
</set>
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@integer/m3_sys_motion_duration_medium3"
android:interpolator="@interpolator/m3_sys_motion_easing_emphasized"
android:fromYDelta="0"
android:toYDelta="100%p"/>
android:interpolator="@interpolator/m3_sys_motion_easing_emphasized">
<!-- Workaround for ugly default bottom sheet dialog transition -->
<translate
android:fromYDelta="0"
android:toYDelta="100%p" />
</set>