How To Add Listview In Listview In Android?
i adding in listview item as 3 textview and i want to display listview item with 3 text view and listview.I am doing like these...
Solution 2:
Try to modify Jeff Sharkey's approach of making a sectioned list, to suit your needs.
As you want a list to be in another list, why don't you set the other list's adapter as an adapter element to your main list?
This is how it can be done,
Make a custom adapter that extends BaseAdapter then
MyListAdapteradapter=newMyListAdapter(Your Context here);
adapter.addAdapter(newArrayAdapter<String>(this,
R.layout.list_item, newString[] { "Text1", "Text2" }));
ListViewmainList=newListView(Context);
list.setAdapter(adapter);
this.setContentView(list);
That should do it...
Solution 3:
this is the good way to make custome listview for that.you can easily get demo for that.if not getting the result then try api demo for android.many demos are there so
Post a Comment for "How To Add Listview In Listview In Android?"