up parent){String text = groups.get(groupPosition).get("group");LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);//获取一级列表布局文件,设置相应元素属性LinearLayout linearLayout = (LinearLayout) layoutInflater.inflate(R.layout.group, null);TextView textView = (TextView)linearLayout.findViewById(R.id.textView01);textView.setText(text);return linearLayout;}@Overridepublic boolean hasStableIds(){return false;}@Overridepublic boolean isChildSelectable(int groupPosition, int childPosition){return false;}}}