TranslateAnimated ImageView not clickable after animation [Android] -
I translates to I have 2 ImageView
is that I down from the top of the screen. These ideas are explained with XML and the animation is connected to the Java code. The animation works perfectly, but the code that I added to the Java code does not work. After translation iamges used fillAfter
attribute animation to remain on his arrival, but not clickable these images ... However, before the translation is clickable their status ... I can not see the logic of this. Can anyone give me some advice about that?
That's because animations only affect the drawing of the widget. However, the real location is not affected - it's still in the last one. -
To fix this problem, you need to update the layout parameters Imejiwu Install the animation listener manually:
Animeshnksetanimeshn Listnr (new animation Listnr () (public Enam Pranimeshneshn Start (animation Ajiaraks) {} public void nuclear replication (animation Ajiaraf) {// TODO auto-generated method stub} public animation and zero (animation arg0) {Androi d.widget.LinearLayout.LayoutParams params = - 100 new layout Params (Androidkviddklainr layout. Leautparmjh. Filojhar, Android. Vidtklainr Lyaut. Leautparms. WRAP_CONTENT); Paramsktag margin = Lenabtn added. Gettep (); Imageviewsletletsperms (params);}});
Comments
Post a Comment