SHARE
TWEET

Untitled

takieddine Oct 18th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top