je le code XML suivant et ne fais rien de fantaisie avec dépassement des comportements de défilement:ScrollView ne répond pas
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ScrollView
android:id="@+id/myscrollview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:layout_weight="1">
<ListView
android:id="@+id/mylistview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</ScrollView>
<TextView
android:id="@+id/my_empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/my_foo"
android:gravity="center"
android:visibility="gone"
/>
</LinearLayout>
Cependant, alors que le listview embarqué ne répond aux presses et presses longues, il ne défile pas. Qu'est-ce que je fais mal?
Le TextView final est la vue vide de la listview.
Vous êtes tous gagnants à mes yeux. – SapphireSun