android - ListView not getting space to show content on smaller screens -
so developing screen there images , buttons on top , below list view shows list of activity.
the design :-
now on smaller screen listview height becomes small screen space taken above icons , images.
so how can increase height of linearlayout or listview user can scroll see rest of listview.
<linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > .... other layouts ..... <listview android:id="@+id/listarea" android:layout_width="match_parent" android:layout_height="fill_parent" android:paddingleft="@dimen/list_padding" android:paddingright="@dimen/list_padding" /> </linearlayout>
edit: tried using top view header list since want emptyview too, creating problem replaces whole header + listview
from read issue, should specify views on top header of list, , the'll scroll properly.
afaik works if list non-empty, empty view replaces whole list including headers.
Comments
Post a Comment