I am using RecyclerView
in my application for the professor to see the students list where there will be photos and other details and delete options. Everything
The error you showed upside means that the image size is very large.
What you can do is
While uploading photos to Firebase
you can compress the photo size and then upload it. So that when your android app
gets photo from Firebase
then the image size will be less and it can allocate easily.
You can use refer to https://developer.android.com/topic/performance/graphics/load-bitmap to load heavy or large images into android efficiently.
First will be considered as the way everyone do. As your Firebase
storage will be used less and users can download your images easily in App
without any Lag
or memory
problem.
The best solution I can think of would be to use the Resize Images Extension:
Resizes images uploaded to Cloud Storage to a specified size, and stores both the original and resized images.
Here is the Github repo.