I want to create a map view with maps that contain a ListView
layout inside a HorizontalScrollableView
that can scroll the maps horizontally. Everything works, but I have problems with scrolling. I can scroll the list vertically only if I do not scroll the cards horizontally and vice versa.
This is the main container:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <HorizontalScrollView android:id="@+id/listview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ddd" > <LinearLayout android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" > </LinearLayout> </HorizontalScrollView> </RelativeLayout>
I inflate and add list items to the linear layout. I would like for smooth vertical and horizontal scrolling without these restrictions (simultaneous horizontal and vertical scrolling).
How can i achieve this?
source share