Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
- ////// cut the code but it is not necessary here , this is where i set data on bindviewholder
- /// as you see here , i m passing eventid to the next activty to fetch details
- /// when online , it works well because i actually use tht eventid with link
- /// but offline there is no way to do that so i save , when i retreive it retreives only one positon
- secondMatch.details.setOnClickListener(v -> {
- Intent intent = new Intent(context, MatchesDetails.class);
- intent.putExtra("keys",generalItem.model.getEventid());
- context.startActivity(intent);
- });
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement