Hey Leute Ich habe das Problem, dass, wenn der ListView wächst, geht es hinter den editText ... Ich will nicht, dass es hinter der Ansicht geht .. Ich will es über den editText bleiben .. könntest du mir helfen? Ich schätze Ihre Hilfe.Warum geht das listVIEW hinter EditText?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical">
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="0dp"
android:paddingBottom="10dp"></ListView>
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnCount="2">
<EditText
android:id="@+id/edit_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_column="0"
android:layout_row="0"
android:layout_gravity="fill_horizontal|bottom"
android:hint="Type text here..."
android:maxLines="3"
android:scrollbars="vertical"
android:maxEms="10"/>
<Button
android:id="@+id/button"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_column="1"
android:layout_row="0"
android:text="Send"
android:layout_gravity="bottom"
android:onClick="insertTo"
/>
</GridLayout>
</LinearLayout>
Sein nicht hinter dem 'editText' gehen, sein die letzte Grenze Text zum Scrollen am Ende der 'Listview'-Grenze. – Pankaj
es geht nicht zurück. Dies ist das Standardverhalten, da Ihr Hauptlayout ein lineares Layout ist und untergeordnete Objekte vertikal ausgerichtet sind. Dies wird aufgrund von paddingBottom in listview angezeigt –