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

Commit ae6cc0d6 authored by Jacqueline Bronger's avatar Jacqueline Bronger
Browse files

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
parent 3ad4f200
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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