public View getView(int position, View convertView, ViewGroup parent) { // TODO CommentView cv = null; if (convertView == null) { convertView = mInflater.inflate(R.layout.comments_item, null); cv = new CommentView(); cv.txtContent = (TextView) convertView.findViewById(R.id.txtContent); cv.txtGenTime = (TextView) convertView.findViewById(R.id.txtGenTime); cv.txtUName = (TextView) convertView.findViewById(R.id.txtUName); convertView.setTag(cv); } else { cv = (CommentView) convertView.getTag(); } NewsComment nc = (NewsComment) getItem(position); cv.txtContent.setText(nc.getContent()); cv.txtGenTime.setText(nc.getGen_time().toLocaleString()); cv.txtUName.setText(nc.getUser_id() + ""); return convertView; }