Android ScrollView and HoriztonalScrollView width always zero
<p>I've created an XML layout file which contains a linear layout inside of a horiztonalScrollView and ScrollView. However when I call the <code>getWidth()</code> or <code>getMeasuredWidth()</code> methods to get the parent's width it is also zero.</p>

<p><code>getHeight()</code> does return a value, but I also need the width to determine how big the view should be. I'm calling these methods in the <code>onMeasure()</code> method.</p>

<p>Does anyone have any suggestions on how to fix this. I've also tried changing the width to "fill_parent" but it makes no difference.</p>

<p>Thanks.</p>

<p>Here's the layout: <a href="http://pastebin.com/qXwDPkLG" rel="nofollow">http://pastebin.com/qXwDPkLG</a></p>
