2013-12-11 2 views
1

У меня есть scrollview, внутри LinearLayout и внутри расширяемого списка. Но expandablelistview приведен ниже. Но если я удалю scrollview, расширение expandablelistview выглядит хорошо. Это мой код:scrollview и expandablelistview cut

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/scrollView1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:fillViewport="true" 
     > 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:background="@drawable/fondo" 
    android:orientation="vertical" > 

    <ExpandableListView 
     android:id="@+id/lvExp" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content"> 

    </ExpandableListView>... 

Что я могу сделать? Спасибо

+0

любая помощь пожалуйста – user3092292

ответ

0
*//make height to fill parent 
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/scrollView1" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" //make height to fill parent 
     android:fillViewport="true" 
     > 
<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:background="@drawable/fondo" 
    android:orientation="vertical" > 
    <ExpandableListView 
     android:id="@+id/lvExp" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content"> 
    </ExpandableListView>...* 
Смежные вопросы