問題
アクティビティのスクロール イベントに優先順位を付ける必要があります。
aiCharts (チャート ライブラリ) を使用しており、自分の領域でズーム、パンなどを行う必要があります。何もしなくてもScrollViews
問題なく動作しますが、前述の を使用するとLayout
、これらの機能がうまく機能しません。ビューの優先順位のためだと思います。
考えられる解決策
andsetOverScrollMode(View.OVER_SCROLL_ALWAYS);
の「上」にある必要があるビューで使用しようとしましたが、正しく機能しません。ScrollView
HorizontalScrollView
レイアウト
<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>
私のすべてのビューは、RelativeLayout に追加することによってプログラムで追加されます。