How to display more than 3- levels of expandable List View?

I Found Solution and I am uploading all java class So check all java Or U can check this : 1: MainActivity.java public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Object obj = new Object(); obj.children = new ArrayList<Object>(); for(int i = 0;i<Constant.state.length;i++) { Object root = new Object(); … Read more

How to add image in expandable List in parent in android?

Working with SimpleExpandableListAdapter is anything but simple. Here’s some code that should get you started, assuming that you’re using ExpandableListActivity. In this example, we use the standard android.R.layout.simple_expandable_list_item_1 for our group header view, but we use our own custom layout for the children. // Construct Expandable List final String NAME = “name”; final String IMAGE … Read more

ANDROID – ExpandableListView

I assume, you have your data structured somehow, like: ArrayList where Parent {name:String, checked:boolean, children:ArrayList} and Child {name:String} If so, you only have to do two things: create proper layouts for your parent item renderer and child item renderer expand BaseExpandableListAdapter to build up the list yourself. Here is a small sample about what’s in … Read more

Android ExpandableListView – Looking for a tutorial [closed]

Create item list List<ParentItem> itemList = new ArrayList<ParentItem>(); ParentItem parent1 = new ParentItem(); parent1.getChildItemList().add(new ChildItem()); parent1.getChildItemList().add(new ChildItem()); parent1.getChildItemList().add(new ChildItem()); ParentItem parent2 = new ParentItem(); parent2.getChildItemList().add(new ChildItem()); parent2.getChildItemList().add(new ChildItem()); parent2.getChildItemList().add(new ChildItem()); itemList.add(parent1); itemList.add(parent2); ExpandableListViewAdapter adapter = new ExpandableListViewAdapter(context, itemList); Data Objects public class ParentItem { private List<ChildItem> childItemList; public ParentItem() { childItemList = new ArrayList<ChildItem>(); } … Read more