title: set width to the textview doesn't work
body: <p>I want to set the width of my text-view in code to <code>width =119</code>  </p>
  
  <pre><code>tv.setWidth(width);
  int width2 = tv.getWidth();
  </code></pre>
  
  <p>but I get the result </p>
  
  <pre><code>width2 =12 
  </code></pre>
  
  <p>I have this code in the onlayout method and when onlayout called again (I think when the text-view is actually on screen )by the android system the result will be correct </p>
  
  <pre><code>width2 =119 
  </code></pre>
  
  <p>I think if the width is set to fixed value you can set it again to the another value before it is drawn in the UI.</p>
  
  <p>How can I know when onlayout will be called because sometimes it doesn't called again I mean after the textview is actually on screen? </p>