Android animation linearlayout -
Android animation linearlayout -
i have got linearlayout form. form has got 2 fields. effect:
two fields, 1 hidden (under top bar). when click button 'ok' linear layout go downwards , display next field (hidden field). how effect?
place 2 fields within relativelayout
. set property android:visibility="gone"
first of them. set property android:layout_below="@id/yourfirstfield"
second. add onclicklistener
button and, in body on listener in java class, alter visibility of first field visible (i guess it's edittext, edittext.visible
) if want nice effect hiding/showing elements, add together android:animatelayoutchanges="true"
relativelayout (the container of both items).
this should work!! hope helps!!
android animation android-linearlayout objectanimator
Comments
Post a Comment