Android 如何在expandablelistview上滚动其他元素?
我使用的是expandablelistview,但我希望当我展开一个组时,滚动版面上的所有iTen,包括上面的textview和imageview 这是我的密码:Android 如何在expandablelistview上滚动其他元素?,android,Android,我使用的是expandablelistview,但我希望当我展开一个组时,滚动版面上的所有iTen,包括上面的textview和imageview 这是我的密码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="7dp">
<ImageView
android:id="@+id/image_destaque"
android:layout_width="299dp"
android:layout_height="132dp"
android:layout_margin="5dp"
android:layout_marginBottom="25dp"
android:contentDescription="@string/app_name"
android:src="@drawable/ic_stub"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:id="@+id/btn1"
android:background="@drawable/roundedbutton"
android:textColor="#FFF"
android:textStyle="bold"
android:layout_below="@+id/image_destaque"/>
<ExpandableListView
android:id="@+id/lista_destaque"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/btn1" >
</ExpandableListView>
</RelativeLayout>
将
图像视图
、按钮
和可展开列表视图
包裹在线性布局中
包裹在滚动视图中
e、 x.
<RelativeLayout>
<ScrollView>
<LinearLayout>
<ImageView>
<Button>
<ExpandableListView>
</LinearLayout>
</ScrollView>
</RelativeLayout>
如果希望imageview、button和expandablelistview可滚动