TeamAdapter.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:SonoESEO-Android 作者:
/**
 * This function fill the layout with the correct values.
 *
 * @param holder   : The holder of the elements on the view.
 * @param position : The position in the team array.
 */
public void onBindViewHolder(ViewHolder holder, int position) {
    String link = APIConstants.SONO_AVATAR + team.get(position).getAvatar();
    Picasso.with(ctx).load(link).placeholder(R.drawable.ic_user).error(R.drawable.ic_user)
            .into(holder.avatar);

    holder.name.setText(ctx.getString(R.string.emptyField));
    if (team.get(position).getName() != null) {
        holder.name.setText(team.get(position).getName());
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号