不啰嗦直接上解决方案,很简单只需要在EditText的父级控件中添加如下属性:
android:focusable="true"
android:focusableInTouchMode="true"
本人亲测,绝对有效!!!
本文提供了一个简单有效的解决方案来解决EditText无法获取焦点的问题。只需在EditText的父级控件中添加两个属性:android:focusable=true 和 android:focusableInTouchMode=true,即可轻松解决问题。
不啰嗦直接上解决方案,很简单只需要在EditText的父级控件中添加如下属性:
android:focusable="true"
android:focusableInTouchMode="true"
本人亲测,绝对有效!!!

被折叠的 条评论
为什么被折叠?