我正在尝试将 aListView
放在ScrollView
android 中。我试着把它们放在这样的LineaLayout
里面
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/frameLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ScrollView
android:id="@+id/marketDetailScrollView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
...
</ScrollView>
<ListView android:id="@android:id/list"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:background="#FFF"/>
</LinearLayout>
并且ListView
没有显示。我也尝试将其放入 a 中RelaviteLayout
,但仍然没有。我可以以某种方式拥有一个ListView
under aScrollView
吗?
只是为了添加一些东西。我不想分割我的屏幕,让我有一半ScrollView
和另一半ListView
。我希望用户向下滚动ScrollView
显然大于屏幕尺寸然后ListView
应该开始