What i have
For me GridLayoutManager Recyclerview, for which the positions 0,2,5,7 are fixed with custom images (the relative layout is converted to a bitmap ;) ), the rest positions are filled with images from the server using volley setImageUrl ()
What I want
I wanted to GridLayoutManager Recyclerviewdisplay offline images from my dropdown using setDefaultImageResId () until the images from the server loaded
My problem
How to set different default images, even if there are no images from the server (when there is no data from the server, it GridLayoutManager Recyclerviewdoes not fill the cells) , nevertheless I wanted to display images by default (at least 4 cells are required)
temporary trick i did
I uploaded 4 default images to a dummy server to force GridLayoutManager Recyclerviewcells to be generated and showing it with volley setImageUrl ()
Expected Result

source
share