i have listview between 2 other layouts, haven't found examples... can make listview within listactivity, not me trying acheive
//main_layout.xml
<linearlayout vertical> <linearlayout horizontal> <spinners , buttons here> </linearlayout> **<listview here">** <linearlayout horizontal> <more buttons etc> </linearlayout> </linearlayout> how make main activity look? (currently setcontentview(main_layout) etc..) need create class , subclass listfragment? how?
thanks help
how make main activity look?
replace **<i want listview here>** <listview> appropriate attributes. specifically, if want listview fill space not used 2 horizontal linearlayouts, give listview android:layout_height="0dp" , android:layout_weight="1". tells android allocate leftover room listview.
currently setcontentview(main_layout) etc.
that should not need change. if activity listactivity, sure give listview android:id="@android:id/list".
do need create class , subclass listfragment?
not necessarily. welcome use listfragment instead of listview if want.
Comments
Post a Comment