title: ListView doesnot return co-ordinate value of child views untill the screen is turned off and then turned on
body: <p>I have a listview to which I am setting an adapter in onCreate() method like this </p>
  
  <pre><code>SongListAdapter songListAdapter 
                     = new SongListAdapter(getApplicationContext(),list);
  all_songs.setAdapter(songListAdapter);
  </code></pre>
  
  <p>Here SongListAdapter is custom adapter. and all_songs is a Listview.</p>
  
  <p>After that I try to fetch the co-ordinates of each of the child views inflated in the list by the method below in onCreate() but everytime I get all co-ordinates as zero. however if I do the same in onResume() I get the co-ordinates properly but to use them I first have to turn off screen then again turn it on and then I get the logs of co-ordinates . Please help I need the co-ordiantes without having to turn off and then turn on the screen.</p>
  
  <pre><code>int[] temp = new int[2];
  float x,y,h,w;
  View singleview=all_songs.getChildAt(i);
  singleview.getLocationOnScreen(temp);
  x = temp[0];
  y = temp[1];
  w =singleview.getWidth();
  h = singleview.getHeight();
  Log.d("faiz",String.valueOf(x)+" "+ String.valueOf(x+w)+"     "+String.valueOf(y)+" "+String.valueOf(y+h)+" "+String.valueOf(i));
  </code></pre>