EDITTEXT机器人自动对焦 [英] Edittext android automatic focus

查看:190
本文介绍了EDITTEXT机器人自动对焦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,在活动开始时,机器人会自动在第一个地方的EditText焦点。我如何prevent的Andr​​oid那么做?

I have an issue when the activity starts, android automatically places focus on the first edittext. How do I prevent android from doing that?

推荐答案

看一看<一个href="http://stackoverflow.com/questions/1555109/stop-edittext-from-gaining-focus-at-activity-startup">here

或者你可以只隐藏键盘,焦点在开始的活动仍然在EditText上:

Or you could just hide the keyboard, focus remains on the EditText upon starting the activity:

android:windowSoftInputMode="stateHidden"

这篇关于EDITTEXT机器人自动对焦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆