/**
* 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());
}
}
TeamAdapter.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:SonoESEO-Android
作者:
评论列表
文章目录