Note that there are some explanatory texts on larger screens.

plurals
  1. POonAnimationEnd is not getting called, onAnimationStart works fine
    primarykey
    data
    text
    <p>I've a ScrollView in the PopupWindow. I'm animating ScrollView contents using TranslateAnimation.</p> <p>When animation starts, the onAnimationStart listener is called but the onAnimationEnd is not getting called. Any ideas ?</p> <p>Layout :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@drawable/popup_window_bg" android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;View android:layout_width="@dimen/toolbar_padding_left" android:layout_height="@dimen/toolbar_height"/&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+web/toolbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scrollbars="none" android:visibility="invisible"&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"&gt; ... &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Animation code :</p> <pre><code>mToolbar = mPopupContents.findViewById( R.web.toolbar ); TranslateAnimation anim = new TranslateAnimation(0, 0, -60, 0); anim.setDuration(1000); anim.setAnimationListener(new Animation.AnimationListener() { public void onAnimationStart(Animation a) { Log.d(LOGTAG, "---- animation start listener called" ); } public void onAnimationRepeat(Animation a) {} public void onAnimationEnd(Animation a) { Log.d(LOGTAG, "---- animation end listener called" ); } }); mToolbar.startAnimation(anim); </code></pre> <p><strong>Update</strong> : I verified that the onAnimationEnd is called but it is called after some delay (provided you don't start the new animation during that time).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload