找到布局文件中第一个EditText的父级控件或者根布局控件,为其添加以下属性:

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

更多相关文章

  1. 布局的学习
  2. 详解四种基本布局 (layout)
  3. Android 自定义View引用xml布局
  4. Android使用代码实现RelativeLayout,LinearLayout布局
  5. 在RelativeLayout布局中可以设置标签的android:layout_toLeftO..
  6. Android学习之表格布局管理器
  7. 【Android动态布局】之【使用addView方法时,如何保持已有动态控件
  8. 超酷的时间选择控件

随机推荐

  1. Android 截屏并写入SD卡中
  2. ImageView 设置图片
  3. zygote服务启动
  4. Android kotlin仿qq更换头像弹窗
  5. Android与Unity3D交互。启动UnityActivit
  6. tytytytytyt
  7. 笔记-Android学习历程
  8. android:利用反射查看底层API的支持
  9. android linearlayout
  10. Android的ViewFlipper-android学习之旅(三