由网友(迷人的烟味つ)分享简介:在我的Android应用程序,它会自动聚焦的第一个按钮我在我的布局,给它一个橙色轮廓。如何设置初始焦点preferably在XML中,并可以这样设定什么?In my android application it automatically focuses the first Button I have in my...
在我的Android应用程序,它会自动聚焦的第一个按钮我在我的布局,给它一个橙色轮廓。如何设置初始焦点preferably在XML中,并可以这样设定什么?
In my android application it automatically focuses the first Button I have in my layout, giving it an orange outline. How can I set the initial focus preferably in XML, and can this be set to nothing?
推荐答案
您可以使用 requestFocus的
标签:
<Button ...>
<requestFocus />
</Button>
我觉得很奇怪,虽然它的自动聚焦你的一个按钮,我还没有看到任何我的观点,即行为。
I find it odd though that it auto-focuses one of your buttons, I haven't observed that behavior in any of my views.
相关推荐
最新文章