title: getLocationOnScreen() returns zero
body: <p>am using the following code for getting the position of a button but it always returning zero.
  Why this happening        </p>
  
  <pre><code>    Button b=(Button) findViewById(R.id.button2);
      final int[] x=new int[2];
      b.getLocationOnScreen(x);
  </code></pre>
  
  <p>Iam sure someone here can help me</p>