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
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
Post a Comment