Problem
I need to give some priority for scrolling events in my Activity.
I'm using aiCharts (charts library) and I need to zoom, pan, etc. on my areas. Without any ScrollViews
it works fine, but, if I use the mentioned Layout
, these features works bad. I think because of priority of views.
Possible solution
I tried to use setOverScrollMode(View.OVER_SCROLL_ALWAYS);
on views that need to be on "top" of ScrollView
and HorizontalScrollView
but doesn't work properly.
Layout
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<RelativeLayout
android:id="@+id/screen_relative_layout"
android:layout_width="wrap_content"
android:layout_height="match_parent" >
</RelativeLayout>
</HorizontalScrollView>
</ScrollView>
All my views are added programmatically by adding to RelativeLayout.