OSDN Git Service

Rename duration scale hint types in xml
authorDoris Liu <tianliu@google.com>
Tue, 14 Apr 2015 04:17:46 +0000 (21:17 -0700)
committerDoris Liu <tianliu@google.com>
Tue, 14 Apr 2015 04:17:46 +0000 (21:17 -0700)
To avoid being confused with unit dp

Change-Id: I5ea9e5ad6034c1d79c9e0bb65759a122ea715770

core/res/res/values/attrs.xml

index 0f50502..04e40a7 100644 (file)
             <enum name="noScale" value="0"/>
             <!-- This should be used when the animation's moving distance is proportional to screen,
                  as the scaling is based on screen size. -->
-            <enum name="screen" value="1"/>
+            <enum name="screenBased" value="1"/>
             <!-- This is for animations that have a distance defined in dp, which will be the same
                  across different devices. In this case, scaling is based on the physical distance
                  per dp on the current device. -->
-            <enum name="dp" value="2"/>
+            <enum name="dpBased" value="2"/>
         </attr>
     </declare-styleable>