@Override public View getView(int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub ItemHolder holder = null; LocationBean location = mLocList.get(position); if (convertView == null) { holder = new ItemHolder(); convertView = (View) LayoutInflater.from(mContext).inflate(R.layout.item_address, null); holder.mAddressStr = (TextView) convertView.findViewById(R.id.address_text); holder.mTime = (TextView) convertView.findViewById(R.id.address_time); convertView.setTag(holder); } else { holder = (ItemHolder) convertView.getTag(); } holder.mAddressStr.setText(location.getAddressStr()); holder.mTime.setText(location.getTime()); return convertView; }