title: Android - getting the width of a button which is set to wrap_content
body: <p>I am trying to get the width of a button whose <code>android:layout_width</code> is set to <code>wrap_content</code>. When I try to do that in <code>onCreate()</code> using <code>getMeasuredWidth()</code>, I get a value of zero because I think the view is not ready yet.</p>
  
  <p>When should I get the width then? Is there any listener I can hook to when view is done initializing? </p>