measuring a view before rendering it
<p>I need to find out how big a view will be after attaching it to its parent.</p>

<p>I have overridden this method:</p>

<pre><code>onMeasure(int, int);
</code></pre>

<p>but it looks like this method is invoked only when I actually add my custom view to it's container using:</p>

<pre><code>addView(myView);
</code></pre>

<p>Do you think there is a way to get this information before rendering the view itself? Basically I need to know the actuall size before attaching it and not attach the view at all if it would take more certain amount of space.</p>

<p>anybody?</p>
