//package bolianeducation.bolianchild.view;
//
//import android.os.Bundle;
//import android.support.annotation.Nullable;
//import android.widget.ExpandableListView;
//
//import java.util.ArrayList;
//
//import bolianeducation.bolianchild.R;
//import bolianeducation.bolianchild.adapter.MsgContactAdapter;
//import bolianeducation.bolianchild.modle.Contact;
//import butterknife.BindView;
//import butterknife.ButterKnife;
//
///**
// * Created by admin on 2017/8/17.
// * 层叠列表，可以选择某个分组（选中该分组下所有人）
// */
//
//public class SelectContactActivity extends BaseActivity {
//    @BindView(R.id.expandable_ListView)
//    ExpandableListView expandableListView;
//
//    MsgContactAdapter adapter;
//    private ArrayList<String> groupList = new ArrayList<>();
//    private ArrayList<ArrayList<Contact>> childList = new ArrayList<>();
//
//    @Override
//    protected void onCreate(@Nullable Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.layout_single_expandable_listview);
//        ButterKnife.bind(this);
//        init();
//    }
//
//    private void init() {
//        //测试数据
//        groupList.add("家1");
//        groupList.add("家2");
////        groupList.add("家3");
////        groupList.add("家4");
//
//        ArrayList<Contact> item1 = new ArrayList<>();
//        item1.add(new Contact("你好1"));
//        item1.add(new Contact("你好2"));
//        item1.add(new Contact("你好3"));
//
//        ArrayList<Contact> item2 = new ArrayList<>();
//        item2.add(new Contact("后来1"));
//        item2.add(new Contact("后来2"));
//        item2.add(new Contact("后来3"));
//        adapter = new MsgContactAdapter(this, groupList, childList);
//        expandableListView.setAdapter(adapter);
//    }
//}
