title: List not Expand when use Fragment
body: <p>I want to use Expandable Listview in Fragment.</p>
  
  <p>I get Group name but when click on that unable to open child elements.</p>
  
  <pre><code>public class SavedTabsFragment extends Fragment {
  
  
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      View v = inflater.inflate(R.layout.saved_tab, null);
      ExpandableListView elv = (ExpandableListView) v.findViewById(R.id.list);
      elv.setClickable(true);
      SavedTabsListAdapter  adapter= new SavedTabsListAdapter(getActivity());
      /*adapter.setInflater( inflater,
              getActivity());*/
      elv.setAdapter(adapter);
      return v;
  }
   }
  </code></pre>
  
  <p><strong>SavedTabsListAdapter</strong></p>
  
  <pre><code>public class SavedTabsListAdapter extends BaseExpandableListAdapter {
  
  private String[] groups = { "People Names", "Dog Names", "Cat Names",
          "Fish Names" };
  private Context ctx;
  private LayoutInflater inflater;
  private String[][] children = { { "Arnold", "Barry", "Chuck", "David" },
          { "Ace", "Bandit", "Cha-Cha", "Deuce" }, { "Fluffy", "Snuggles" },
          { "Goldy", "Bubbles" } };
  
  public SavedTabsListAdapter(Context ct) {
      ctx = ct;
      inflater = (LayoutInflater) ctx
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  }
  
  @Override
  public int getGroupCount() {
      return groups.length;
  }
  
  @Override
  public int getChildrenCount(int i) {
      return children[i].length;
  }
  
  @Override
  public Object getGroup(int i) {
      return groups[i];
  }
  
  @Override
  public Object getChild(int i, int i1) {
      return children[i][i1];
  }
  
  @Override
  public long getGroupId(int i) {
      return i;
  }
  
  @Override
  public long getChildId(int i, int i1) {
      return i1;
  }
  
  @Override
  public boolean hasStableIds() {
      return true;
  }
  
  @Override
  public View getGroupView(int i, boolean b, View view, ViewGroup viewGroup) {
  
      view = inflater.inflate(R.layout.grouprow, null);
      CheckedTextView tv = (CheckedTextView) view
              .findViewById(R.id.textView1);
      tv.setText(getGroup(i).toString());
      return view;
  }
  
  @Override
  public View getChildView(int i, int i1, boolean b, View view,
          ViewGroup viewGroup) {
  
      view = inflater.inflate(R.layout.childrow, null);
      TextView tv = (TextView) view.findViewById(R.id.textView1);
      tv.setText(getChild(i, i1).toString());
      return view;
  }
  
  @Override
  public boolean isChildSelectable(int i, int i1) {
      return true;
  }
  
  }
  </code></pre>