How To Set "toydelta" Attribute In Java Code?
I've got many textViews and below each of them, a tableLayout which has visibility.GONE at the very beginning . I am trying to expand the tableLayout which is belong to a textView
Solution 1:
There are several alternatives for doing this. The simplest one is probably to use a ViewPropertyAnimator
, e.g.
view.animate().translationY(value);
To get the current value (for example if you want to update it with a fixed offset) you can use view.getTranslationY()
.
See http://developer.android.com/guide/topics/graphics/prop-animation.html
Post a Comment for "How To Set "toydelta" Attribute In Java Code?"