1. Are you ready for the Galaxy S20? Here is everything we know so far!

dynamically create groups within another group in android expandable listview

Discussion in 'Android Development' started by krishnaveni, Aug 18, 2012.

  1. krishnaveni

    krishnaveni Well-Known Member
    Thread Starter

    Hi i have to developed one expandablelistview is successfully..now i wish to need expandable listview with in another expandablelistview..how is creating groups within another groups in android expandable listview ...please help me..how is to do... this is my code for creating 2 groups(orderinfo, customerinfo).
    Code (Text):
    1.  
    2. final LayoutInflater layoutInflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    3.         final ArrayList<HashMap<String, String>> headerData = new ArrayList<HashMap<String, String>>();
    4.  
    5.         final HashMap<String, String> group1 = new HashMap<String, String>();
    6.         group1.put(NAME, "OrderInfo");
    7.         headerData.add( group1 );
    8.  
    9.         final HashMap<String, String> group2 = new HashMap<String, String>();
    10.         group2.put(NAME, "CustomerInfo");
    11.         headerData.add( group2);
    12.  
    now i wish to need to implement the customerinfo within another 3 group is created....how is to do..please give me sample code..
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...