Hey, You can use a SimpleExpandableListAdapter to achieve this.
SimpleExpandableListAdapter expListAdapter = new SimpleExpandableListAdapter( this, createGroupList(), // groupData describes the first-level entries R.layout.group_row, // Layout for the first-level entries new String[] { "colorName" }, // Key in the groupData maps to display new int[] { R.id.groupname }, // Data under "colorName" key goes into this TextView createChildList(), // childData describes second-level entries R.layout.child_table, // Layout for second-level entries new String[] { "childTextView1", "childTextView2" }, // Keys in childData maps to display new int[] { R.id.childtablename, R.id.view2table } // Data under the keys above go into these TextViews ); This will allow you to specify different formatting to the child and parent. As u can see in "R.layout.group_row" you can specify the layout settings of the parent and "R.layout.child_table" for the child. Albeit, you can only have text views in the expandable list. But you can include an imageView (which is going to be static and not dynamic) in the appropriate layout for displaying images in the expandable list view. Gyan. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---