只需要在edittext的父控件上设置
android:focusable="true" android:focusableInTouchMode="true"这两句就行了
本文介绍了一种简单的方法来实现EditText控件的焦点设置,只需在EditText的父控件中加入两个属性:android:focusable=true 和 android:focusableInTouchMode=true,即可轻松解决触摸模式下的焦点问题。
只需要在edittext的父控件上设置
android:focusable="true" android:focusableInTouchMode="true"这两句就行了
767

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