/**
* 用户信息
*/
private void setProfileInfo(UserBean userBean) {
String userProfileImagUrl = userBean.getProfileImage();
String userAvatarUrl = userBean.getAvatar();
String userName = userBean.getUsername();
String userNick = userBean.getNick();
if (userName != null && !userName.equals("")) {
userNameTv.setText(userName.trim());
}
if (userAvatarUrl != null && !userAvatarUrl.equals("")) {
Picasso.with(mContext).load(userAvatarUrl).placeholder(R.mipmap.profile_fail).error(R.mipmap.profile_fail).into(avatarImg);
}
if (userProfileImagUrl != null && !userProfileImagUrl.equals("")) {
Picasso.with(mContext).load(userProfileImagUrl).placeholder(R.mipmap.header).error(R.mipmap.header).into(profileImg);
}
}
MomentsAcitivity.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:MyFriendsComment
作者:
评论列表
文章目录