Android animateLayoutChanges: can I set a listener?

Viewed 3160

I have set android:animateLayoutChanges to true for my LinearLayout:

<LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="top"
        android:animateLayoutChanges="true">
</LinearLayout>

Then, I run the following to animate the disappearance of an element.

TextView line;
...
line.setVisibility(View.GONE);

How can I know when the animation has finished?

1 Answers
Related