私のAndroidアプリケーションでは、ListViewがあり、ヘッダには2 editText
が含まれています。 editText
にフォーカスしようとすると、キーボードが表示され、フォーカスが上部のeditTextに変わります。ヘッダーレイアウトのxml:キーボードのeditTextを変更できないようにする
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/name"
android:hint="Title"
android:layout_alignParentTop="true"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nextFocusUp="@id/name"
android:inputType="text"
android:hint="Wordpack description"
android:id="@+id/description"
android:layout_below="@+id/name" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/description"
android:inputType="text"
android:id="@+id/locale"
android:text="Select language"/>
</RelativeLayout>
あなたは 'アンドロイド削除しようとしたことがあり:nextFocusUp'タグを? –
@PabloBaxter問題がまだ発生します – Feelfree