I have the following animation xml:
<?xml version="1.0" encoding="utf-8"?>
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromYDelta="0%"
android:toYDelta="300%"
android:duration="2000"
android:zAdjustment="bottom" />
but when I call this on an onCLick(), the View slides down until its out, and then it just reappear in its default location. How to make it stay outside until I call another animation?
Thanks
Set
View.GONEto the view you are translating viaView.setVisibility()when theAnimationhas finished, which can be detected by anAnimationListener.