title: How to display a custom view in Android?
body: <p>I am generating a custom View that contains a number of drawables that are added to the View dynamically. This means the View's size could be anything, and is likely to stretch off the screen. Where it does stretch off the screen I want scrolling to be enabled.</p>
  
  <p>So far I have tried:</p>
  
  <ul>
  <li>adding the custom view directly to my <code>Activity</code> - this displays the drawables ok, but with no scrolling</li>
  <li>adding the custom view as a child to a <code>ScrollView</code> and setting the <code>ScrollView</code> as the content in the <code>Activity</code> - this doesn't display anything.</li>
  </ul>
  
  <p>How do I generate a custom view of arbitrary size, display it and have scrolling where it is too big for the screen?</p>