Closed muhammadfaisalr closed 4 years ago
here is my code in adapter
holder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { context.startActivity(new Intent(context, DetailPhotoActivity.class).putExtra("photo",photo.getId())); } });
but photo.getPhotoId(); always return wrong value?
photo.getPhotoId();
ok issue closed, just use photos.get(position).getId() instead of photo.getId()
photos.get(position).getId()
photo.getId()
here is my code in adapter
but
photo.getPhotoId();
always return wrong value?