Glide.with(m_context).load(m_listData.get(iPosition).getUrl()).into(new ViewTarget(myViewHolder.m_ivGroup) {
//括号里为需要加载的控件
@Override
public void onResourceReady(GlideDrawable resource,
GlideAnimation glideAnimation) {
this.view.setBackground(resource.getCurrent());
}
});
网友评论