I basically populate a ListView lv with an ArrayAdapter and I need to programatically lv.smoothScrollToPosition(i) only after it's rendered; otherwise, it will not work. The event I'm listening to is onWindowFocusChanged(boolean hasFocus) to set the adapter to the listview.
How can I catch the moment at which is optimal to scroll the lv?