¿Cómo funciona TranslateAnimation en Android?
Fui a traves
TranslateAnimation (float fromXDelta, float toXDelta, float fromYDelta, float toYDelta)
pero todavía estoy confundido acerca de cómoTranslate animation
trabajos.
¿Alguien puede explicar cómo funciona? Leí los documentos que dicen
fromXDelta Change in X coordinate to apply at the start of the animation
toXDelta Change in X coordinate to apply at the end of the animation
fromYDelta Change in Y coordinate to apply at the start of the animation
toYDelta Change in Y coordinate to apply at the end of the animation
pero todavía no me queda claro cómo funciona.
EDITAR: Tengo unButton
y unLinearLayout
sin hijos Cuando estoy haciendo clic en elButton
Quiero generar dinámicamente unTextView
y anima esoTextView
aparecer en elLinearLayout
. El número deTextView
s dependerá de la cantidad de clics en el botón.