Reputation: 4908
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
Upvotes: 0
Views: 2471
Reputation: 26925
Set View.GONE
to the view you are translating via View.setVisibility()
when the Animation
has finished, which can be detected by an AnimationListener
.
Upvotes: 1