Guest User

Untitled

a guest
Jul 23rd, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. StockViewHolder(View itemView) {
  2. super(itemView);
  3. cv = itemView.findViewById(R.id.card);
  4. name = itemView.findViewById(R.id.name);
  5. quantity = itemView.findViewById(R.id.quantity);
  6. category = itemView.findViewById(R.id.category);
  7. no = itemView.findViewById(R.id.no);
  8.  
  9. itemView.setOnClickListener(v->{
  10. mObserver.onCardClicked(getAdapterPosition(), stockFiltered.get(getAdapterPosition()).name);
  11. }
  12. }
RAW Paste Data