title: Create a scrollable LinearLayout without a ScrollView
body: <p>I spent a good part of a day looking into scrolling content in Android. However, in my app I need to apply a custom type of scrolling that contains among other things a listview. A listview has its own scrolling and a scrollview should never be used with a list view together.</p>
  
  <p>But there must be some intrinsic scroll functionality for views. The documentation on View does indicate support but the methods provided do not seem to provide any listeners to detect scrolling.</p>
  
  <p>A scrollview also is built on a FrameLayout which would also be problematic in my app. </p>
  
  <p>You can make a LinearLayout scrollable with:</p>
  
  <pre><code>android:isScrollContainer="true"
  </code></pre>
  
  <p>but this doesn't seem to do anything.</p>
  
  <p>In fact you can even set the scrollbars for a LinearLayout:</p>
  
  <pre><code>android:scrollbars="vertical"
  </code></pre>
  
  <p>but that also doesn't seem to do anything.</p>
  
  <p>I don't want to control scrolling but rather have a listener that detects scrolling on the screen regardless whether a listview, framelayout or any other control is visible. I guess what I am looking for is writing my own custom ScrollView control but without the limitations of its FrameLayout and all the unnecessary overhead that I don't need. Any suggestions?</p>