I know Android execute 2 times (or sometimes even more) the getView() method of the adapter in order to draw the ListView correctly. I would like to know (or get notified) when it stops execute that method.
Why? The rows of my list are animated when user swipes on one of them. If the user swipes before Android has finished execute getView(), the animation is executed on the first row instead of the row touched by the user.
You can load ListView in background AsyncTask. And during that time you can show
progress dialogon the screen so user is not able to do any action on your screen.Check this Reference :
Load ListView in background AsyncTask
Hope this helps you.
Thanks.