In my application i want display list view using adapter. But i want get the current height and width of the list view (means after generating the list using adapter). how t
Use getWidth() and getHeight() method of ListView in onWindowFocusChanged to get the width and height.
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
System.out.println("Width:" + listview.getWidth());
System.out.println("Height:" + listview.getHeight());
}