Getting image from fire base using glide and set into recycler view but image not load
upload uploadCurrent = mUploads.get(position);
Glide.with(mContext).load(uploadCurrent.getFilePathUri()).into(holder.mimageView);
holder.textViewname.setText(uploadCurrent.getProductName());
holder.textViewcontact.setText(uploadCurrent.getContactNumber());
holder.textViewprice.setText(uploadCurrent.getPrice());
You may use picasso instead of glide,
in your build.gradle app
compile 'com.squareup.picasso:picasso:2.5.2'
then
Picasso.with(mContext).load(uploadCurrent.getFilePathUri()).into(holder.mimageView);
If it didn't work try making sure that uploadCurrent.getFilePathUri()
returns a valid uri.
if it returns a valid uri then the problem is with the context maybe try
Picasso.with(getApplicationContext()).load(uploadCurrent.getFilePathUri()).into(holder.mimageView);
if still no luck then the best way is to remove picasso and glide and write
holder.imageView.setImageUri(uploadCurrent.getFilePathUri());
That's it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.