How to add volume bar ,radio button and Checkbox  for children in ExpandableListView?
<p>I have to design settings  for my application. My settings Group items are  1.Volume settings, 2.Share Settings, 3.Reminder settings. I Have design trough ExpandableListView. In Volume setting i want to provide a volume bar so that i can increase or reduce my volume. For share setting i want to provide checkbox for children . For Reminder setting i want to do that by radio buttons for children. Can you provide code.for that.  here is My smple code.............</p>

<pre><code>public class ExpandableListViewDemo4Activity extends Activity {
            private static final String KEY1 = "GROUP";
            private static final String KEY2 = "CHILD";

            //String to be displayed  
            private String[] GROUPS = { "Video Volume Settings", "Reminder Settings", "Share Settings", "Other Settings" };
            private String[][] CHILDREN = {
                    { "low", "mediam", "high"},
                    { "after 5 sec", "after 10 sec", "after 15 sec", "after 30 sec" },
                    { "Facebook", "Twitter", "E-Mail", "Messaging" },
                    { "channel", "news" }
            };


            @Override
            public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

                // Setting a list of strings
                List&lt;Map&lt;String, String&gt;&gt; groupData =
                    new ArrayList&lt;Map&lt;String, String&gt;&gt;();
                List&lt;List&lt;Map&lt;String, String&gt;&gt;&gt; childData =
                    new ArrayList&lt;List&lt;Map&lt;String, String&gt;&gt;&gt;();

                // Continue to set the string to the list
                for (int i = 0; i &lt; GROUPS.length; i++) {
                    //Adding a parent element 
                    Map&lt;String, String&gt; curGroupMap =
                        new HashMap&lt;String, String&gt;();
                    groupData.add(curGroupMap);
                    curGroupMap.put(KEY1, GROUPS[i]);
                    curGroupMap.put(KEY2, "");

                    List&lt;Map&lt;String, String&gt;&gt; children =
                        new ArrayList&lt;Map&lt;String, String&gt;&gt;();
                    if (CHILDREN.length &gt; i) {
                        for (int j = 0; j &lt; CHILDREN[i].length; j++) {
                            //Add a child 
                            Map&lt;String, String&gt; curChildMap =
                                new HashMap&lt;String, String&gt;();
                            children.add(curChildMap);
                            curChildMap.put(KEY1, CHILDREN[i][j]);  
                            j]);                }
                    }
                    childData.add(children);
                }

                // ExpandbleListAdapter create
                ExpandableListAdapter adapter =
                    new SimpleExpandableListAdapter(
                            this,
                            groupData,
                            android.R.layout.simple_expandable_list_item_1,
                            new String[] { KEY1, KEY2 },
                            new int[] { android.R.id.text1, android.R.id.text2 },
                            childData,
                            android.R.layout.simple_expandable_list_item_2,
                            new String[] { KEY1, KEY2 },
                            new int[] { android.R.id.text1, android.R.id.text2 }
                    );

                ExpandableListView listView = 
                    (ExpandableListView) findViewById(R.id.ExpandableListView);
                // set the Adapter
                listView.setAdapter(adapter);

                //Register a callback to be called when the user clicks the group 
                listView.setOnGroupClickListener(new OnGroupClickListener() {
                    @Override
                    public boolean onGroupClick(ExpandableListView parent,
                            View v, int groupPosition, long id) {
                        //What Happens When the user clicks 
                        return false;
                    }      
                });

                //Register a callback to be called when the item is clicked in the group 
                listView.setOnChildClickListener(new OnChildClickListener() {
                    @Override
                    public boolean onChildClick(ExpandableListView parent, View v,
                            int groupPosition, int childPosition, long id) {
                        //What Happens When the user clicks


                        return true;
                    }      
                });
            }  
        }
</code></pre>
