public DMConversationAdapter(Fragment fragment, List<DMBean> bean, ListView listView) { this.bean = bean; this.commander = TimeLineBitmapDownloader.getInstance(); this.inflater = fragment.getActivity().getLayoutInflater(); this.listView = listView; this.fragment = fragment; }
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); } }