EditText kann auf Emulator bearbeitet werden, aber nicht in meinem LG G2 und anderen realen Geräten. Aber in der anderen Aktivität ist es editierbar, aber nicht in diesem. Ich habe keine Ahnung, wie ich dieses Problem lösen kann.EditText nicht editierbar auf Real-Gerät
Hier ist mein xml-Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText android:id="@+id/inputSearch"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="false"
android:hint="Search for a group..."
android:textColorHint="@color/colorPrimaryDark"
android:maxLength="25"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:inputType="textVisiblePassword" />
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="60dp"
android:fitsSystemWindows="false">
<!--android:layout_marginTop="@dimen/activity_vertical_margin" >-->
</ListView>
</RelativeLayout>
</FrameLayout>
Works hinzufügen. Vielen Dank! :) –