Code example for SparseArray

Methods: clear

0
	public ExpandListAdapter(Context context, int groupLayout, int childLayout) {
		mContext = context;
		mGroupLayout = groupLayout;
		mChildLayout = childLayout;
 
		mSaveStateMap = new SparseArray<SaveState>();
		mSaveStateMap.clear();
 
		mInflater = LayoutInflater.from(context);
	} 
 
	public void bindListView(ListView listView) {
		mListView = listView;
		mListView.setOnItemClickListener(this);
		resetAllGroupSaveState(false); 
 
		mAdpater = new InnerAdpater();
		mListView.setAdapter(mAdpater);
		mAdpater.notifyDataSetChanged();
 
	}