I have 3 Listview's in my activity and i want to scroll all of them together at the same time, so i used Scrollview >> linear layout >> 3 listview. but still each of them scroll separately here is the xml code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_order_items"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.nir.nestleapp.OrderItemsActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="410dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="500dp"
android:orientation="horizontal">
<ListView
android:layout_width="125dp"
android:id="@+id/ItemNameList"
android:layout_height="372dp">
</ListView>
<ListView
android:id="@+id/ItemPriceList"
android:layout_width="125dp"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/QuantityList">
</ListView>
<ListView
android:id="@+id/QuantityList"
android:layout_width="125dp"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_toEndOf="@id/ItemPriceList">
</ListView>
</LinearLayout>
</ScrollView>
<Button
android:text="Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:id="@+id/button3" />
</RelativeLayout>