Advertisement
Guest User

Untitled

a guest
May 4th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. public class BrandViewHolder extends RecyclerView.ViewHolder {
  2.  
  3.    TextView name;
  4.     ImageButton like;
  5.     public BrandViewHolder(View itemView) {
  6.         super(itemView);
  7.  
  8.         name = (TextView) itemView.findViewById(R.id.nameBrand);
  9.         like = (ImageButton) itemView.findViewById(R.id.buttonLike);
  10.     }
  11.  
  12.     public void bindItem(String text,int like) {
  13.         name.setText(text);
  14.         this.like.setImageResource(like);
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement