use of org.qii.weiciyuan.support.lib.TimeLineAvatarImageView in project weiciyuan by qii.
the class DMConversationAdapter method buildAvatar.
protected void buildAvatar(TimeLineAvatarImageView view, int position, final UserBean user) {
((IWeiciyuanDrawable) view).checkVerified(user);
String image_url = user.getProfile_image_url();
if (!TextUtils.isEmpty(image_url)) {
view.setVisibility(View.VISIBLE);
commander.downloadAvatar(view.getImageView(), user, (AbstractTimeLineFragment) fragment);
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getActivity(), UserInfoActivity.class);
intent.putExtra("token", GlobalContext.getInstance().getSpecialToken());
intent.putExtra("user", user);
getActivity().startActivity(intent);
}
});
} else {
view.setVisibility(View.GONE);
}
}
use of org.qii.weiciyuan.support.lib.TimeLineAvatarImageView in project weiciyuan by qii.
the class BrowserWeiboMsgCommentAndRepostAdapter method buildAvatar.
protected void buildAvatar(TimeLineAvatarImageView view, int position, final UserBean user) {
view.setVisibility(View.VISIBLE);
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getActivity(), UserInfoActivity.class);
intent.putExtra("token", GlobalContext.getInstance().getSpecialToken());
intent.putExtra("user", user);
getActivity().startActivity(intent);
}
});
view.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
UserDialog dialog = new UserDialog(user);
dialog.show(fragment.getFragmentManager(), "");
return true;
}
});
view.checkVerified(user);
buildAvatar(view.getImageView(), position, user);
}
Aggregations