コード例 #1
0
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
    if (convertView == null) {
      convertView = layoutInflater.inflate(R.layout.item_local, null);
      tag = new Tag();
      tag.labName = (TextView) convertView.findViewById(R.id.local_pro_name);

      convertView.setTag(tag);
    } else {
      tag = (Tag) convertView.getTag();
    }
    CategoryEntity entity = list.get(position);
    String name = entity.getTitle();
    tag.labName.setText(name);
    return convertView;
  }