I had a similar problem that I decided to create a thread that has loops that can only go after loading the list.
new Thread(new Runnable() { public void run() { while(listView.getCount() == 0) ; } }).start();
This approach can be done because I guarantee that at the moment there is something in the list. Be careful using this approach. This is not the best, but it was the one I found.
source share