Android EditText在开始显示时失去焦点
2015-12-15 17:02
323 查看
在其父控件下,添加如下的属性:
android:focusable="true"
android:focusableInTouchMode="true"
android:focusable="true"
android:focusableInTouchMode="true"
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:focusable="true" android:focusableInTouchMode="true"
> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>
相关文章推荐
- Android 2D Graphics学习(二)、Canvas篇2、Canvas裁剪和Region、RegionIterator
- Android自定义Switch开关
- 基于 Android NDK 的学习之旅-----Android.mk 介绍
- Activity跳转生命周期变化
- Android NDK开发之HelloWorld
- Android之ListView分页获取网路数据(服务器端)(一)
- conn.getInputStream 显示为空指针
- Android沉浸式状态栏(二)
- Uncaught ReferenceError while loading asset file on android 4.4
- android之遍历所有文件夹和子目录搜索文件
- 在学习过程中总结的LoaderManager的LoaderCallbacks刷新数据以使onLoadFinished回调方法能被执行的两种方式
- Android开发-asset中文件超过1M的解决方法
- Android LitePal介绍与使用说明
- Android使用ListView实现时间轴可添加标题和子栏目
- android设置主题和自定义主题的方法
- Android Service完全解析,关于服务你所需知道的一切
- Android SDK的安装教程
- Android Alarm详解
- android-Property Animation
- 创建Material Design风格的Android应用--创建列表和卡片