I am using two ListView in a screen. I want to divide the height of each ListView but I want it to be screen independent. For this I need to know the Height of the screen. I am using xml to do this.
Can any one please help me to achieve this?
Thank You
Deepak
Try this:
The important parts are having the
ListViewsandroid:layout_height="fill_parent"andandroid:layout_weight="1"and theLinearLayoutandroid:orientation="vertical"Documentation for more information about the layout_weight attribute.