在一个activity中有多个EditText如何在点击或是获取焦点的时候,不让输入法弹出。
给edittext设置无法获取焦点的属性: android:focusable="false"
<EditText
android:id="@+id/edit_text"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:focusable="false"/>
android:focusable设置成false"
focusable属性设置为false。
服了,focusable设置成false还能获取焦点吗?用这个试试,setInputType(InputType.TYPENULL),获取焦点永不弹出软键盘。