android - Ask about TranslateAnimation -


i'm using translateanimation(float fromxdelta, float toxdelta, float fromydelta, float toydelta) fromxdelta, toxdelta, fromydelta, toydelta pixel. how change pixel percentage (i don't want use animation wiht xml file)?

you need use translateanimation constructor takes typing of input.

animation.relative_to_self move animation in reference 1.0f equals 100% of length/width of object translated.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -