@Override public View getView(int position, View convertView, ViewGroup parent) { ViewHodler holder = null; if (null == convertView) { convertView = View.inflate(context, R.layout.li_child_click_item, null); holder = new ViewHodler(); holder.mCountry = (Button) convertView.findViewById(R.id.licc_btn_country); holder.mName = (TextView) convertView.findViewById(R.id.licc_tv_name); convertView.setTag(holder); } else { holder = (ViewHodler) convertView.getTag(); } LiData data = list.get(position); holder.mCountry.setText(data.country); holder.mCountry.setOnClickListener(new OnItemChildClickListener(CLICK_INDEX_COUNTRY, position)); holder.mName.setText(data.name); holder.mName.setOnClickListener(new OnItemChildClickListener(CLICK_INDEX_NAME, position)); convertView.setOnClickListener(new OnItemChildClickListener(CLICK_INDEX_ITEM, position)); return convertView; }