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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user