I hide the checkbox from the ExpandableListView but expandableListview doesn't work properly
<blockquote>
  <p>I created <code>ExpandableListView</code> with following <code>getView</code> method </p>
</blockquote>

<pre><code>@Override
public View getGroupView(int groupPosition, boolean isExpanded,
                     View convertView, ViewGroup parent) {
Group_Items gr = (Group_Items) getGroup(groupPosition);
long group_id = getGroupId(groupPosition);

if (convertView == null) {
    LayoutInflater inf = (LayoutInflater) context
            .getSystemService(context.LAYOUT_INFLATER_SERVICE);
    convertView = inf.inflate(R.layout.expandable_group_items, null);

    // adding onClick listener on CheckBox for the very first time
    chk=(CheckBox) convertView.findViewById(R.id.chk);
    chk.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            int position = (int) v.getTag();
            mSelections.put(position, !mSelections.get(position, false));
            ((CheckBox)v).setChecked(mSelections.get(position, false));
        }
    });
}

TextView title = (TextView) convertView.findViewById(R.id.title);
title.setText(gr.getName());
CheckBox chk=(CheckBox) convertView.findViewById(R.id.chk);
chk.setTag(groupPosition);
// reassigning checkbox to its ticked state
chk.setChecked(mSelections.get(groupPosition, false));
</code></pre>

<p><code>if(groupPosition==2)
     {
      ch.setVisibility(View.GONE);
      }
    return convertView;
}</code></p>

<p><em>I uses above <code>if(groupPosition==2)</code> method to hide <code>CheckBox</code> of third item from <code>ExpandablelistView</code> but..</em></p>

<blockquote>
  <p>I faces another problem when I expand <code>First</code> or <code>Second</code> Item then <code>CheckBoxes</code> position is automatically changed</p>
</blockquote>

<p>so guys I am confused now How to handle this error</p>

<p><a href="https://drive.google.com/file/d/0B4WLNcB0KW3HV0FvOWtxdXlhcW8/view?usp=sharing" rel="nofollow">Here is my app</a> 
you can check it and please help me</p>