java - Thread.sleep NOT working Android -


i have objectanimator

final objectanimator anim = (objectanimator) animatorinflater                 .loadanimator(getactivity(), r.anim.flip);         anim.settarget(tvdebitamount);         anim.setduration(3000);         anim.start(); 

i need work in loop, gap. mean , once animation finishes need call anim.start again after wait of 4000 ms.

i tried putting in infinite loop , , put thread.sleep() after anim.start(). it's not working(whole screen not responding). how can make wait/sleep ?

thread.sleep() blocks current thread ui thread , don't want that.

to make animation work way want, wrap in animation set runs 4000 ms longer while actual animation in set still takes 3000 ms. set animation repeat mode restart , repeat count infinite.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -