ExpandableListView with adapter
<p>I want to create an ExpandableListView with custom adapter, however it only show my title group and when I click on the title (to view the children items) it doesnt do anything
(I want to have only one group item, therefore the item group count is 1).</p>

<p>Please help me to find where am I wrong, thanks alot.</p>

<p>This is my adapter:</p>

<pre><code>class chatListAdapter extends BaseExpandableListAdapter {
private String objectsIdInsideAdapter;
private List&lt;String&gt; commentsInsideAdapter = new ArrayList&lt;String&gt;();
private List&lt;String&gt; FacebookIdInsideAdapter=new ArrayList&lt;String&gt;();
private List&lt;String&gt; NamesInsideAdapter =new ArrayList&lt;String&gt;();
private Context mContext;

chatListAdapter(String objectId,Context ctx,List&lt;String&gt; comments,List&lt;String&gt; face,List&lt;String&gt; names){
    objectsIdInsideAdapter=objectId;
    mContext=ctx;
    commentsInsideAdapter=comments;
    FacebookIdInsideAdapter=face;
    NamesInsideAdapter=names;
}
@Override
public Object getChild(int arg0, int arg1) {
    // TODO Auto-generated method stub
    return NamesInsideAdapter.get(arg1);
}

@Override
public long getChildId(int arg0, int arg1) {
    // TODO Auto-generated method stub
    return 0;
}

@Override
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View v,
        ViewGroup parent) {
    // TODO Auto-generated method stub

    LayoutInflater inflater = getLayoutInflater();


    if(v==null){
         v = inflater.inflate(R.layout.chat_item, parent, false);
    }



    String comment =commentsInsideAdapter.get(position);
    Button sendCommentBtn =(Button) v.findViewById(R.id.chatitemSendComment);
        TextView commentView= (TextView) v.findViewById(R.id.chateitemViewComment);
        commentView.setText(comment);
        TextView commentName =(TextView) v.findViewById(R.id.chatitemfreindName);
        commentName.setText(NamesInsideAdapter.get(position));
        EditText commentText= (EditText) v.findViewById(R.id.chatitemEnterComment);
        commentText.setVisibility(View.GONE);
        sendCommentBtn.setVisibility(View.GONE);




    return v;
}

@Override
public int getChildrenCount(int arg0) {
    // TODO Auto-generated method stub
    return NamesInsideAdapter.size();
}

@Override
public Object getGroup(int arg0) {
    // TODO Auto-generated method stub
    return null;
}

@Override
public int getGroupCount() {
    // TODO Auto-generated method stub
    return 1;
}

@Override
public long getGroupId(int arg0) {
    // TODO Auto-generated method stub
    return 0;
}

@Override
public View getGroupView(int groupPosition, boolean isExpanded, View convertView,
        ViewGroup parent) {
    // TODO Auto-generated method stub
    View v = convertView;

    if (v == null) {
        LayoutInflater inflater = getLayoutInflater();
        v = inflater.inflate(R.layout.chat_item_group_layout,parent, false);
    }

    TextView groupName = (TextView) v.findViewById(R.id.groupName);
    TextView groupDescr = (TextView) v.findViewById(R.id.groupDescr);

    groupName.setText("view comments");
    groupDescr.setText("groupDSCR");


    return v;

}

@Override
public boolean hasStableIds() {
    // TODO Auto-generated method stub
    return false;
}

@Override
public boolean isChildSelectable(int arg0, int arg1) {
    // TODO Auto-generated method stub
    return false;
}
</code></pre>

<p>and this is the code in the main Activity:</p>

<pre><code>ExpandableListView  chat =(ExpandableListView) v.findViewById(R.id.ExpList); 

     String faceids =facebookIdChatInside.get(position);
     String comments = commentInside.get(position);
     String namesChat =nameChatInside.get(position);
     List&lt;String&gt; chatItems = new ArrayList&lt;String&gt;(Arrays.asList(comments.split(",")));
     List&lt;String&gt; facebookids = new ArrayList&lt;String&gt;(Arrays.asList(faceids.split(",")));
     List&lt;String&gt; namesList = new ArrayList&lt;String&gt;(Arrays.asList(namesChat.split(",")));
     chatItems.add(" ");
     facebookids.add(id);
     namesList.add(name);


     chatListAdapter chatA =new chatListAdapter(objectsId.get(position),profileContext,chatItems,facebookids,namesList);
     chat.setAdapter(chatA);
</code></pre>

<p>I checked it, and those 3 Lists are not empty.</p>
