首页 > 移动平台 > 详细

Android 偶遇小问题解决方案集合

时间:2016-04-14 20:53:54      阅读:160      评论:0      收藏:0      [点我收藏+]

1、Android 如何让EditText不自动获取焦点

 

解决方案:找一个EditText的父级控件把EditText默认的行为截断了!设置

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

示例:

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true">

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>

Android 偶遇小问题解决方案集合

原文:http://www.cnblogs.com/yishujun/p/5392608.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!