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