i have been trying to display images in my recyclerview, i had seen a lot of tutorials, but i can't.
this is my onBindViewholder in my adapter class
@Override
public void onBindViewHolder(@NonNull final cowviewHolder holder, int position) {
final Cow vacaslist = vacas.get(position);
holder.textViewinterno.setText(vacaslist.interno);
holder.textViewsiniiga.setText(vacaslist.siniiga);
Picasso.get().load(vacaslist.ulr)
.resize(80,80).centerCrop().error(R.drawable.ic_imageinf).into(holder.imageviewrec);
This is my database in firebase, im taking the images from storage
Thanks.. If need more info let me know
I think the problem is your ulr
variable name because on firebase it is url
so, if you are instantiating your Cow
object using following syntax:
ref.child("Vacas").child("$id").getValue(Cow.class);
Then ulr will be null.