title: Can't get height of Widgets
body: <p>I am facing a problem when gets height/width of TextView.</p>
  
  <p>My code : </p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      TextView tv1 = (TextView)findViewById(R.id.textview1);
      int h1 = tv1.getHeight();
      TextView tv2 = (TextView)findViewById(R.id.textview2);
      int h2 = tv2.getHeight();
  }
  </code></pre>
  
  <p>h1 is height of textview1
  h2 is height of textview2</p>
  
  <p>These h1 and h2 are always equal to 0. </p>
  
  <p>What is wrong here ?</p>
  
  <p>Please advice.</p>
  
  <p>Thanks.</p>