title: Why does location on screen always return 0?
body: <p>I want to know the position of an image view but its always returns <code>0</code> neither the <code>x</code> coordinate or <code>y</code> coordinate. Here is my code</p>
  
  <pre><code>    ImageView credits = (ImageView) v.findViewById(R.id.credits);
      int[] coor = {0,0};
      credits.getLocationOnScreen(coor);
      x = coor[0];
      y = coor[1];
  </code></pre>
  
  <p>I already use many method such as <code>getTop()</code>, etc. but still its return 0.</p>
  
  <p>Anyone know why? I'm new to android so I really appreciate to any answers. </p>