Android in view Solution for requestfocus (0) returning false

Sometimes we want the first line of listview to automatically get the focus, so we use view Requestfocus (0) to operate, but sometimes it does not take effect. After debug, rerun is displayed as false.

This is because we get the focus too early and the listview control is still loaded. Try the following solutions:

The above is what Xiaobian introduced to you. Android is in view Requestfocus (0) returns a false solution. I hope it will help you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>