Example #1
0
 @Override
 public void onBindViewHolder(MessageViewHolder messageViewHolder, int i) {
   Message message = messages.get(i);
   messageViewHolder.getBackgroundView().setTag(message);
   messageViewHolder.populate(
       activity, message); // Delegate the population of the View to the ViewHolder
 }
Example #2
0
  @Override
  public MessageViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
    View view = layoutInflater.inflate(R.layout.list_item_message, viewGroup, false);
    view.setOnClickListener(this);

    MessageViewHolder viewHolder = new MessageViewHolder(view);
    viewHolder.getBackgroundView().setOnClickListener(this);
    return viewHolder;
  }
Example #3
0
 public void m6554a(Context context, HistoryEntity historyEntity, int i, int i2) {
   super.m6519a(context, historyEntity, i, i2);
   CharSequence s = historyEntity.m4432s();
   if (s == null || s.equals("")) {
     this.f4053m.setVisibility(8);
   }
   this.f4053m.setText(s);
   try {
     this.f4052l.setImageBitmap(BitmapUtil.m6976b(historyEntity.m4423j()));
   } catch (Throwable th) {
   }
 }
Example #4
0
 public void m6555y() {
   super.m6522y();
   this.v.setOnClickListener(new C03991(this));
   this.f4053m.setOnClickListener(new C04002(this));
   this.v.setOnLongClickListener(new C04013(this));
 }