首页 > 移动平台 > 详细

Android界面默认让文本框失去焦点

时间:2015-06-21 01:55:11      阅读:1776      评论:0      收藏:0      [点我收藏+]

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

在最外面的LinearLayout加上两个属性

 1 <LinearLayout 
 2     xmlns:android="http://schemas.android.com/apk/res/android"
 3     android:layout_width="fill_parent"
 4     android:layout_height="wrap_content"
 5     android:background="#D3D3D3"
 6     android:orientation="vertical" 
 7     android:paddingTop="5dip"
 8     android:layout_gravity="center"
 9     android:focusable="true"  
10     android:focusableInTouchMode="true" >

 

Android界面默认让文本框失去焦点

原文:http://www.cnblogs.com/ajqfju/p/4591415.html

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