I am using a customadapter and overriding the getView() method. In this method I call view.getHeight() which returns 0. I would like to find out the height (in pixel) of each item in the listview. And find out where it is on the screen. So If I have 10 items in the list view is it possible to find out where the 5th item position on the screen(in pixel) I would like to find out the y of the item. top left corner.
CustomArrayAdapter adapter = new CustomArrayAdapter(this,R.layout.rowlayout,mydizi);
View header = (View)getLayoutInflater().inflate(R.layout.listview_header_row, null);
lv.addHeaderView(header);
lv.setAdapter(adapter);
View viewList = lv.getChildAt(5 - lv.getFirstVisiblePosition());
viewList.getLocationOnScreen(location);