EditText前面放置一个看不到的LinearLayout,让它率先获取焦点,代码如下:
android 输入框不获取焦点
原创
©著作权归作者所有:来自51CTO博客作者mp624183768的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:Cannot lock Java compile cache (H:\project\android\hk\kaikeba\kaikeba\kaikeba\.gradle\6.7.1\javaCom
下一篇:Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
有趣的CSS - 简约大方的输入框
一款简约大方的动态输入框,适用于表单提交、账号登录入口。
css 输入框 前端 ui 输入框交互 -
android 设置 输入框获取焦点 android输入框默认值
Android让文本输入框默认不获取焦点 项目中有个检索功能,页面上有个EditText输入框,打开页面后,焦点默认在EditText上,这样的话软键盘默认就会显示出来,占据大半个屏幕。后来想办法将这个给去掉了,原先考虑着将焦点赋给页面上的
android 设置 输入框获取焦点 移动开发 数据库 android Text