@Override
public View getItemView(int sectionIndex, int position, View convertView,
ViewGroup parent) {
if (convertView == null) {
convertView = LayoutInflater.from(context).inflate(
R.layout.pic_view, parent, false);
}
ImageView img = (ImageView) convertView.findViewById(R.id.pic);
if (hideImages) {
int idx = position % colors.length;
img.setBackgroundColor(colors[idx]);
} else {
Shot s = (Shot)(this.section.getData().get(position));
Picasso.with(context)
.load(s.getImage_teaser_url())
.into(img);
}
return convertView;
}
DribbbleDataAdapter.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录