0
J'essaie de mettre EditText ci-dessus listview mais je ne comprends pas pourquoi listiview se chevauche sur le texte d'édition. Voici la source de mise en page:Définir EditText ci-dessus listview avec swiperefreshlayout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="10dp"
>
<RelativeLayout
android:id="@+id/firstlayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/textEnter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello" />
<EditText
android:id="@+id/editTextInput"
android:layout_below="@+id/textEnter"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</RelativeLayout>
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/sw_refresh"
android:layout_width="match_parent"
android:layout_height="fill_parent">
<!--layout which should be refreshed should come here-->
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:listSelector="@drawable/list_selector"
android:background="@drawable/customshape"
android:fadeScrollbars="false"
>
</ListView>
</android.support.v4.widget.SwipeRefreshLayout>
</RelativeLayout>
J'avais essayé tout ce qui était dans mon esprit et dans le concepteur Android studio il y a erreur comme avertissement de fidélité de la mise en page
pour une raison pour laquelle la liste a disparu – Josef