I am trying to put a ListView
below a ScrollView
in android. I tried putting them inside a LineaLayout
like this
<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>
and the ListView
doesn't get shown. I also tried putting it inside a RelaviteLayout
and still nothing. Can I somehow have a ListView
under a ScrollView
?
Just to add something. I don't want to split my screen so that I have a half with a ScrollView
and another half with a ListView
. I want the user to scroll down the ScrollView
which apparently is bigger than the screen size and then the ListView
should start