title: How to programmatically scroll an HorizontalScrollView
body: <p>I have an <code>HorizontalScrollView</code> which contains a <code>RelativeLayout</code>. This layout is empty in the XML, and is populated from java in the onCreate.</p>
  
  <p>I would like this scroll view to be initially somewhere in the middle of the <code>RelativeLayout</code>, which is way larger than the screen.</p>
  
  <p>I tried <code>mHorizScrollView.scrollTo(offsetX, 0);</code> which doesn't work.
  I don't know what's wrong with this.</p>
  
  <p>I could post the code, but it is not really relevant. What matters is that everything is done programatically (has to :s), and that the initial position of the <code>HorizontalScrollView</code> has to be set programmatically.</p>
  
  <p>Thanks for reading. Please tell me if you need more details or if this is not clear enough.</p>