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

Commit 66d3d8a0 authored by ztenghui's avatar ztenghui
Browse files

Add string support for valueFrom/valueTo

b/15910407

Change-Id: I557e855f7d16e2eb0452d43ca6a672acdcae2071
parent 1c1cda0c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5447,9 +5447,9 @@
             greater than 0 or infinite. The default value is restart. -->
        <attr name="repeatMode"/>
        <!-- Value the animation starts from. -->
        <attr name="valueFrom" format="float|integer|color|dimension"/>
        <attr name="valueFrom" format="float|integer|color|dimension|string"/>
        <!-- Value the animation animates to. -->
        <attr name="valueTo" format="float|integer|color|dimension"/>
        <attr name="valueTo" format="float|integer|color|dimension|string"/>
        <!-- The type of valueFrom and valueTo. -->
        <attr name="valueType">
            <!-- valueFrom and valueTo are floats. This is the default value is valueType is
+2 −2
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@
    <objectAnimator
        android:duration="3000"
        android:propertyName="pathData"
        android:valueFrom="@string/triangle"
        android:valueTo="@string/rectangle"
        android:valueFrom="M300,70 l 0,-70 70,70 0,0   -70,70z"
        android:valueTo=  "M300,70 l 0,-70 70,0  0,140 -70,0 z"
        android:valueType="pathType"/>

    <objectAnimator