Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BrandViewHolder extends RecyclerView.ViewHolder {
- TextView name;
- ImageButton like;
- public BrandViewHolder(View itemView) {
- super(itemView);
- name = (TextView) itemView.findViewById(R.id.nameBrand);
- like = (ImageButton) itemView.findViewById(R.id.buttonLike);
- }
- public void bindItem(String text,int like) {
- name.setText(text);
- this.like.setImageResource(like);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement