In meiner Android-Anwendung habe ich ListView, mit Header enthält 2 editText
. Wenn ich versuche, auf den niedrigeren Wert editText
zu fokussieren, wird die Tastatur angezeigt und der Fokus wird auf den oberen editText geändert. Header Layout xml:Verhindern von Änderung editText auf Tastatur öffnen
<?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>
Haben Sie versucht, das Entfernen der 'android: nextFocusUp'-Tag aus dem Kern von ihm, können Sie die folgenden in Ihrer Tätigkeit auf dem Manifest hinzufügen müssen ? –
@PabloBaxter Problem tritt immer noch auf – Feelfree