Ici j'utilise scrollview dans ma linearlayout.Mais je veux inclure une autre listview dans ma scrolllay linearlayout. Scrollview prend en charge un seul enfant.Je sais que l'intérieur de scrollview listview ne fonctionne pas.Mais est-il une autre option pour utiliser listview.Je veux faire défiler tout le contenu.comment résoudre scrollview listview dans linearlayout dans android
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:id="@+id/widget54"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<LinearLayout
android:layout_width="310px"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button 1"
/>
<Button
android:id="@+id/button2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button 2"
/>
<Button
android:id="@+id/button3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button 3"
/>
<EditText
android:id="@+id/txt"
android:layout_width="fill_parent"
android:layout_height="300px"
/>
<Button
android:id="@+id/button4"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button 4"
/>
</LinearLayout>
</ScrollView>
Vous pouvez voir ceci: http://stackoverflow.com/questions/3495890/how-can-i-put-a-listview-into-a -scrollview-without-it-effondrement – user3682351