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

Commit 349a9bd7 authored by Alan Viverette's avatar Alan Viverette
Browse files

Use shape drawable for button asset, enable shadows

BUG: 15316437
Change-Id: I8c2ddce50fcf8082c8ba01350606d6f344e03306
parent 564560e4
Loading
Loading
Loading
Loading
+23 −2
Original line number Diff line number Diff line
@@ -18,16 +18,37 @@
        <set>
            <objectAnimator android:propertyName="translationZ"
                            android:duration="@integer/button_pressed_animation_duration"
                            android:valueTo="@dimen/button_pressed_z"
                            android:valueTo="@dimen/button_pressed_z_material"
                            android:valueType="floatType"/>
            <objectAnimator android:propertyName="elevation"
                            android:duration="0"
                            android:valueTo="@dimen/button_elevation_material"
                            android:valueType="floatType"/>
        </set>
    </item>
    <!-- base state -->
    <item>
    <item android:state_enabled="true">
        <set>
            <objectAnimator android:propertyName="translationZ"
                            android:duration="@integer/button_pressed_animation_duration"
                            android:valueTo="0"
                            android:startDelay="@integer/button_pressed_animation_delay"
                            android:valueType="floatType"/>
            <objectAnimator android:propertyName="elevation"
                            android:duration="0"
                            android:valueTo="@dimen/button_elevation_material"
                            android:valueType="floatType" />
        </set>
    </item>
    <item>
        <set>
            <objectAnimator android:propertyName="translationZ"
                            android:duration="0"
                            android:valueTo="0"
                            android:valueType="floatType"/>
            <objectAnimator android:propertyName="elevation"
                            android:duration="0"
                            android:valueTo="0"
                            android:valueType="floatType"/>
        </set>
    </item>
−189 B
Loading image diff...
−225 B
Loading image diff...
−143 B
Loading image diff...
−154 B
Loading image diff...
Loading