What kind of value does android:valueTo represent

NG-Search [Bot]

New Member
So I've been scouring the Android documentation trying to find out what kind of value \[code\]android:valueTo\[/code\], in , actually represents/takes, but with no luck. The documentation has the following to say:\[code\]android:valueTo: float, int, or color. Required. The value where the animated property ends. Colors are represented as six digit hexadecimal numbers (for example , #333333). \[/code\]Now that only tells me the value type (float, int, color), but not what it represents. For instance if I use the following code to animate the x coordinates of a view does the value in \[code\]android:valueTo\[/code\] take on the format that the view's property accepts (if the property allows % or dp then you could use either here), does float always represent % and int always dp or even something else?\[code\]<objectAnimator android:propertyName="x" android:duration="@android:integer/config_mediumAnimTime" android:valueTo="-50" android:valueType="intType"/>\[/code\]How ever using % or dp isn't allowed in the field, only using real numbers, so figuring this out by trial and error hasn't worked out.Any help would be appreciated.-MrDresden
 
Back
Top