Add scale animation to PiP button click.

Bug: 265294383
Test: manual - start PiP, open menu, click on button e.g.
expand/collapse --> button should temporarily become a bit smaller.

Change-Id: Ib14a3505d34c1a685d426d8b9133dc7778db75b3
This commit is contained in:
Jacqueline Bronger
2023-02-07 12:08:39 +01:00
parent 3ad4f200c2
commit ae6cc0d699

View File

@@ -18,6 +18,20 @@
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<set>
<objectAnimator
android:duration="200"
android:propertyName="scaleX"
android:valueTo="1.0"
android:valueType="floatType"/>
<objectAnimator
android:duration="200"
android:propertyName="scaleY"
android:valueTo="1.0"
android:valueType="floatType"/>
</set>
</item>
<item android:state_focused="true">
<set>
<objectAnimator