Closed pmrzygweb closed 2 years ago
Hi @pmrzygweb,
Thank you for reporting this issue. Unfortunately, the TextDrawable
you suggested is not supported by Coil and Glide. AvatarView uses Coil and Glide to load network or local images. I would like to suggest just you should implement by overlapping the AvatarView in your layout.
@skydoves Thanks for your reply. The problem is that I can overlay it for single icon but no way for group icons (more than 2 users)
@skydoves Do you have any suggestion?
Hi @pmrzygweb,
You can use the TextDrawable
because Coil does not support it.
There is one way but it's a bit complicated.
Avatar
to the loadImage
.AvatarBitmapFactory
and it will draw your initials with the extra data.You can finally implement the result below:
This is quite a complicated way, but this is the only way to accomplish it for now.
I'll review this if we can support it as an independent artifact in the future!
I am using this library for name initials placeholder - https://github.com/amulyakhare/TextDrawable However, AvatarView doesn't load TextDrawable somehow Any help is appreciated