android的edittext默认不获得焦点

时间:2014-09-29 15:07:12   收藏:0   阅读:267

可以在EditText前面放置一个看不到的LinearLayout,让他率先获取焦点:
<LinearLayout
        android:focusable="true" android:focusableInTouchMode="true"
        android:layout_width="0px" android:layout_height="0px"/>

原文:http://www.cnblogs.com/zyppac/p/4000050.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!