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

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -