Code example for ExpandableListAdapter

Methods: getChild

0
        public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, 
                int childPosition, long id) { 
            final ExpandableListAdapter adapter = parent.getExpandableListAdapter(); 
 
            @SuppressWarnings("unchecked") 
            final Map<String, Object> m = (Map<String, Object>) adapter.getChild(groupPosition, 
                    childPosition); 
            if (m == null) { 
                return false; 
            } 
 
            final UsbInterface iface = (UsbInterface) m.get(InterfaceMapKeys.INTERFACE); 
            if (iface == null) { 
                return false; 
            } 
 
            mInterfaceSelectionCallback.onUsbInterfaceSelected(iface); 
            return true; 
        } 
    };