Avoiding Android ListView from recycling until after animation -


i have animation going on items in listview, , don't want listview item recycled until after animation finished. there way apis lower 16?

if have case needs keep view recycle, @ video: https://www.youtube.com/watch?v=8mifsxgshis

  1. use view property animator (keep view recycle until animation done):

    view.animate().setduration(1000).alpha(0).withendaction(new runnable() {

    @override public void run() {   …   view.setalpha(1); } 

    });

or

2. set view transient state, not recycled until clear transient state:

view.sethastransientstat(true); view.sethastransientstat(false); 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -