I am working on a chat application, which does need to show the profile picture of each person whom I'm chatting with. If it is a group conversation I need to design a layout like FB
as below
I'm thinking of implementing it using LayerDrawable
but not sure how. Also the images need to be loaded from server
. I'm using Glide library to load images
.
Yes, you would need to implement
LayerDrawable
. On StackOverflow there are some examples like this below from overlay two images in android to set an imageview issueAnother possible solution might be from unable to set multiple bitmap in one imageview
If you still feel not satisfied, take a look at Android : How to Draw multiple images inside the same imageview but shifted in the y coordinate?
You can also visit: Draw multiple bitmaps on Imageview
On Web you would also find some tutorials, but I don't think that presented there solution would be much different from this above.
Finally, once you've done it to make it circle use this library: https://github.com/hdodenhof/CircleImageView
Hope it help
Considered 3 layouts side by side and wrap the top layout into circular shape.
And my Circular linearlayout code goes like this
Cheers, Sree