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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -