Sometimes we want the first line of the listview to automatically get the focus, so we will use (0) to operate, but sometimes it does not take effect. After debugging, rerurn is false.
This is because we get focus too early and the listview control is still loaded. You can try a solution:
(new Runnable(){ @Override public void run(){ (0); } });
The above is the solution for Android to return false in (0) introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support for my website!