在项目中,一进入一个页面, EditText默认就会自动获取焦点,Android 如何让EditText不自动获取焦点?


解决之道:在EditText的父级控件中找一个,设置成

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



更多相关文章

  1. Eclipse中Android项目XML文件的格式化配置
  2. Android:控件GridView的使用
  3. Android(安卓)中RelativeLayout各个属性的含义
  4. Android提示版本更新的实现
  5. Android(安卓)Studio开发-day3 UI界面设计
  6. android开发4:布局管理器1(线性布局,相对布局RelativeLayout-案例)
  7. 线性布局LinearLayout和相对布局RelativeLayout 之间的比较
  8. TextView中ellipsize属性 + 走马灯效果
  9. android中如何获取文件的路径总结

随机推荐

  1. android 3.3 butterknife-7.0.1。jar(com
  2. Android 实例讲解 Spinner样式修改
  3. 解决Only the original thread that crea
  4. Android游戏发展趋势分析
  5. android中往字符串数组动态添加元素
  6. Android Studio 小技巧(2):AS中Button文字默
  7. android BOOT_COMPLETED 失败
  8. 对Android的理解
  9. Android(安卓)判断SIM卡属于哪个移动运营
  10. Android的按钮监听事件&自定义回调函数