android下拉菜单(4)
来源:未知 责任编辑:责任编辑 发表时间:2014-02-18 03:21 点击:次
convertView = LayoutInflater.from(activity).inflate(
R.layout.pull_down_list_item, null);
holder.textView = (TextView) convertView
.findViewById(R.id.pull_list_item_text);
holder.imageView = (ImageView) convertView
.findViewById(R.id.pull_list_item_image);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
holder.textView.setText((CharSequence) list.get(position).get("textView"));
// holder.imageView.setImageDrawable((Drawable) list.get(position).get("imageView"));
holder.imageView.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
setDelete(position);
removeItem(position);
}
});
return convertView;
}
class ViewHolder {
TextView textView;
ImageView imageView;
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>