Esempio n. 1
0
  @Override
  public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    LayoutInflater inflater = LayoutInflater.from(parent.getContext());

    ItemPeopleBinding binding = ItemPeopleBinding.inflate(inflater, parent, false);
    binding.getRoot().setOnClickListener(this);
    return new ViewHolder(binding);
  }
Esempio n. 2
0
 public void bindto(People people) {
   binding.setPeople(people);
   binding.executePendingBindings();
 }
Esempio n. 3
0
 public ViewHolder(ItemPeopleBinding binding) {
   super(binding.getRoot());
   this.binding = binding;
 }