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?