在佈局中如果有EditText時會自動獲取焦點,導致軟鍵盤自動彈出。
修改方法:
xml中EditText的父佈局添加屬性:
android:focusable="true"
android:focusableInTouchMode="true"
在佈局中如果有EditText時會自動獲取焦點,導致軟鍵盤自動彈出。
修改方法:
xml中EditText的父佈局添加屬性:
android:focusable="true"
android:focusableInTouchMode="true"