Ich habe eine Edittext und unten zu diesem Imageview gefolgt von 3 Textviews. Wenn ich versuche, den Edittext einzugeben, wird die 3 Textansicht korrekt angezeigt. Aber wenn ich das Bild hinzufüge und versuche, den Editiertext einzugeben, wird das Bild oben auf dem Editiertext angezeigt, dh das Bild überlappt den Editiertext.Bild überlappenden Editiertext während der Eingabe
XML:
<ScrollView
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"
android:fillViewport="true"
android:background="#ffffffff">
<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" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".Main"
android:paddingStart="5dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/userDisplay"
android:text="Username"
android:textColor="#ff6aa9ff"
android:textSize="20sp"
android:textStyle="bold"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/FName"
android:hint="FName"
android:background="#ffffffff"
android:gravity="start|left"
android:inputType="textFilter|textMultiLine"
android:maxLength="150"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_below="@+id/userDisplay" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Camera"
android:id="@+id/Camera"
android:paddingTop="7dp"
android:paddingBottom="7dp"
android:background="#ffffffff"
android:textSize="21sp"
android:drawableLeft="@drawable/compact"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Gallery"
android:id="@+id/Gallery"
android:paddingTop="7dp"
android:paddingBottom="7dp"
android:paddingLeft="7dp"
android:background="#ffffffff"
android:drawableLeft="@drawable/gallery"
android:textSize="21sp"
android:layout_alignTop="@+id/Camera"
android:layout_centerHorizontal="true"
android:layout_alignBottom="@+id/Camera" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text=" Post"
android:id="@+id/Post"
android:paddingTop="7dp"
android:paddingBottom="7dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:background="#ffff5654"
android:textSize="21sp"
android:textStyle="bold"
android:textColor="#ff000000"
android:drawableLeft="@drawable/plane"
android:layout_alignTop="@+id/Gallery"
android:layout_alignParentRight="true"
android:layout_alignBottom="@+id/Gallery" />
<ImageView
android:layout_width="match_parent"
android:layout_height="180dp"
android:id="@+id/image"
android:contentDescription="@string/abc_action_bar_home_description"
android:layout_marginBottom="76dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
</RelativeLayout>
</ScrollView>
und in der Android-Manifest-Datei i der unterhalb der Linie die Aktivität erwähnen tun. Versucht, durch Entfernen der unteren Zeile, aber das gleiche Verhalten zu sehen.
android:windowSoftInputMode="stateHidden|adjustResize"
Welche Veränderungen kann ich dieses
Sie haben 'android: layout_alignParentRight =" true " android: layout_alignParentEnd =" true "' in EditText und ImageView. Ist das das Problem? – notsopopularguy
Diese Zeilen entfernt und getestet. Gleiches Verhalten. – user2269164
Versuchen Sie android: windowSoftInputMode = "adjustPan" –