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

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

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

 使焦点放置在父布局上。

posted @ 2018-04-22 11:25  哈密瓜小王子  阅读(219)  评论(0编辑  收藏  举报