codepath / android_guides

Extensive Open-Source Guides for Android Developers
guides.codepath.com
MIT License
28.31k stars 6.35k forks source link

How can I make a collection view using recyclerview and it has a image as below (Not a scrolling list) #406

Open nihp opened 4 years ago

nihp commented 4 years ago

I need like below image in my app.

(If it is one it occupies fully, if two image it splits in to two if three it will be 3 image

Screenshot 2020-11-04 at 12 46 20 PM

tejen commented 4 years ago

Hi @nihp are you currently taking a CodePath bootcamp course at the moment? If so, we can help you personally at discussions.codepath.com or codepath.slack.com! Let me know...

nihp commented 4 years ago

No

bhaskar253 commented 3 years ago

I don't know exactly, but the approach I might have taken in this situation is like have 3 different layout xmls, one with only one image container, one with 2 image containers and last one with all 3 image containers. Based on the number of images I would have inflated the view on the parent container.