/ / Pourquoi cette vue Android ne remplit-elle pas l'écran verticalement? - android, vues

Pourquoi cette vue Android ne remplit-elle pas l'écran verticalement? - android, vues

Avoir cette vue XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/myScrollLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView
android:id="@+id/widget29"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@+id/lstView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ListView>
</ScrollView>
</LinearLayout>

texte alt http://img528.imageshack.us/img528/3603/ss3v.jpg

Pourquoi mon ListView affiche uniquement le premier élément et ne remplit pas l'écran?

Réponses:

2 pour la réponse № 1

Ne pas mettre un ListView à l'intérieur d'un ScrollView. ListView sait déjà comment faire défiler.