EditText取消默认得到焦点的方法

在EditText的父布局中添加以下两行代码:

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

 使焦点放置在父布局上。

猜你喜欢

转载自www.cnblogs.com/hamihua/p/8906198.html
今日推荐