Saturday, August 18, 2012

[android-developers] dynamically create groups within another group in android expandable listview

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).

final LayoutInflater layoutInflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    final ArrayList<HashMap<String, String>> headerData = new ArrayList<HashMap<String, String>>();

    final HashMap<String, String> group1 = new HashMap<String, String>();
    group1.put(NAME, "OrderInfo");
    headerData.add( group1 );

    final HashMap<String, String> group2 = new HashMap<String, String>();
    group2.put(NAME, "CustomerInfo");
    headerData.add( group2);

now i wish to need to implement the customerinfo within another 3 group is created....how is to do..please give me sample code..

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate