How to avoid a blink in Translate animation for Android? -
i have image @ position 0,0 initially. when user clicks button animate image , move 0,100 using
animation = new translateanimation(0, 0, 0, listinstancedetails.dragitemheight); an.setfillafter(true);
since setfillafter true. animation stays @ 0,100. user clicks button again , want come 0,100 0,0. use code
animation = new translateanimation(0, 0, 100, 0); an.setfillafter(true);
this working fine. when before second animation starts 100,0 gives blink @ 0,0 , starts 100,0 0,0. looks ugly.
is there way avoid blink. there has played around lot translate animation , done similar operation. doing wrong. please let me know inputs. thank time , advice.
i had used an.setfillbefore(false); in code. removed , started working fine.
Comments
Post a Comment