title: How to disable a child item once clicked in an expandable listview in Android
body: <p>I have an expandable listview with Questions and I want each time a question is clicked or answered to have this child question disabled. Is this possible? 
  thank you</p>
  
  <p>This is what I have done do far</p>
  
  <pre><code>expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
          @Override
          public boolean onChildClick(ExpandableListView parent, View v,int groupPosition, int childPosition, long id)
          {
              boolean GroupExists = linkedHashMapobject.containsKey(groupPosition);
              boolean ChildExists = linkedHashMapobject.containsValue(childPosition);
  
              if(GroupExists || ChildExists)
              {
                  Toast.makeText(getContext(),"It already exists",Toast.LENGTH_LONG);
              }else
              {
                  v.setEnabled(false);
                  linkedHashMapobject.put(groupPosition,childPosition);
                  CollectData(childPosition,groupPosition);
              }
  
              return true;
          }
      });
  </code></pre>
  
  <p>which does not work and disables all child elements</p>