@Override
 public View onCreateView(
     LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
   View root = inflater.inflate(R.layout.fragment_nicks, container, false);
   list = (AnimatedExpandableListView) root.findViewById(R.id.userList);
   list.setOnGroupClickListener(
       new ExpandableListView.OnGroupClickListener() {
         @Override
         public boolean onGroupClick(
             ExpandableListView parent, View v, int groupPosition, long id) {
           if (list.isGroupExpanded(groupPosition)) {
             list.collapseGroupWithAnimation(groupPosition);
           } else {
             list.expandGroupWithAnimation(groupPosition);
           }
           return true;
         }
       });
   return root;
 }
 @Override
 public void onActivityCreated(Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   list.setAdapter(adapter);
 }