android - How to add a LinearLayout in the same activity which has Listview? -
i have activity there linear layout occupies half of screen , below need keep listview has hold number of items. doing this
<scrollview> <linearlayout> </linearlayout> <listview> </listview> </scrollview>
but reading threads think not idea keeping listview inside scrollview. facing lot of issues height of listview not proper.
so how keep layout , listview inside same activity without using scrollview?
it not recommended include scrolling view (listview) inside scrollview. want achieve can done adding headerview can inflated xml.
linearlayout ll = inflater.inflate(r.layout.my_layout, null); listview.addheaderview(ll);
Comments
Post a Comment