if you customize the title in a ListView by inflating the layout, for example:
ListView lv = getListView(); LayoutInflater inflater = getLayoutInflater(); ViewGroup header = (ViewGroup)inflater.inflate(R.layout.header, lv, false); lv.addHeaderView(header, null, false);
you can change the height of the R.layout.header layout using
header.setLayoutParams(params);
You can get the height of the notification or status bar using this code here:
The height of the status bar?
source share