Advertisement
takieddine

Untitled

Oct 18th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. @Override
  2. public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
  3.  
  4. ////// cut the code but it is not necessary here , this is where i set data on bindviewholder
  5.  
  6. /// as you see here , i m passing eventid to the next activty to fetch details
  7. /// when online , it works well because i actually use tht eventid with link
  8. /// but offline there is no way to do that so i save , when i retreive it retreives only one positon
  9. secondMatch.details.setOnClickListener(v -> {
  10.  
  11. Intent intent = new Intent(context, MatchesDetails.class);
  12. intent.putExtra("keys",generalItem.model.getEventid());
  13. context.startActivity(intent);
  14.  
  15. });
  16.  
  17.  
  18.  
  19. break;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement