Android : How to handle the end of layout animation

on Thursday, September 25, 2014


My layout with animateLayoutChanges look like this:



<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/main_layout"
android:orientation="vertical"
android:animateLayoutChanges="true">

<Button
layout_width="wrap_content"
layout_height="wrap_content"
android:id="@+id/button"/>
</LinearLayout>


I would like to handle the moment when setVisibility aniamtion is eneded:



buttom.setVisibility(View.GONE);


How to do it?


0 comments:

Post a Comment