Android ScrollView isFinished?

Just find a simple answer that I cannot find on Google. Simply put. Is there any way to tell when ScrollView stopped scrolling after the transition?

+5
source share
1 answer

Yes, after the throw he comes in perfect condition, which means that your throw is over. To do this, you need to add a listener to your list, for example list.setOnScrollListener(this). Then you should check the listener to see if he is in perfect condition or not. like this

public void onScrollStateChanged(AbsListView view, int scrollState) 
{          
     if(OnScrollListener.SCROLL_STATE_IDLE)
    {
        your code;
    }
}
-2
source

All Articles