在edittext的父控件上添加如下两行代码,即可轻松解决edittext自动获取焦点 android:focusable="true" android:focusableInTouchMode="true"