在EditText的父级控件中找一个,设置成

android:focusable="true"
android:focusableInTouchMode="true"



在页面点击获取焦点后,再使用EditText对象的clearFocus();此时可以清除焦点

更多相关文章

  1. LinearLayout按下(pressed)或获取焦点(focused)时背景设置不同颜
  2. Android中禁止多点触控的设置
  3. Android(安卓)自绘输入框
  4. android:descendantFocusability 焦点 父控件与子控件焦点 .
  5. Android选择框
  6. Android通过AudioFocus机制对音频焦点进行管理
  7. Android学习笔记(八)
  8. Android(安卓)豆知识
  9. Android中实现控件圆角边框

随机推荐

  1. 【MOS】Redundant Interconnect ora.clus
  2. Elasticsearch 最佳运维实践 - 总结(一)
  3. 踩坑CBO,解决那些坑爹的SQL优化问题
  4. Intel Thunderbolt曝出7个漏洞,影响过去9
  5. Sentence-BERT: 一种能快速计算句子相似
  6. 【MOS】Limitations of the Oracle Cost
  7. memcached程序端口监控脚本
  8. PKG_COLLECTION_LHR 存储过程或函数返回
  9. cront计划任务的详细讲解
  10. 【MOS】RAC 环境中 gc block lost 和私网