talk-android/app/src/main/java/com/nextcloud/talk/adapters/items
Marcel Hibbe ad15bca8ec
WIP: use placeholders when avatar is not available
Problem:
i want to load avatars and if no avatar is received, i want to show the placeholder.
However with coil it's not possible to make the placeholders rounded. See https://github.com/coil-kt/coil/issues/37

I could just set the old rounded drawables that we have, but then theming wouldn't work!

So i ask myself what the best solution could be:

- Somehow check beforehand if an avatar is set at all? and then choose between loading the avatar or loading the the static drawables in their own loading request.

- Somehow check if the avatar response is empty. And if yes, make another request to load the static drawables.

- Use jetpack compose instead of coil to clip the image? See https://stackoverflow.com/questions/66014834/how-to-draw-a-circular-image-in-android-jetpack-compose

- create new svg's? Somehow it should be possible to invert a circle and just overlay it over an image..?

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-05-01 12:25:19 +02:00
..
AdvancedUserItem.java Spotbugs prevent NPR deference 2022-12-29 11:37:00 +01:00
ContactItem.java Spotbug: Method stores return result in local before immediately returning it 2022-12-29 11:37:18 +01:00
ConversationItem.kt WIP: use placeholders when avatar is not available 2023-05-01 12:25:19 +02:00
FlexibleItemViewType.kt lint: move from resource IDs to fixed, unique Int values for view types 2023-04-14 22:07:00 +02:00
GenericTextHeaderItem.java Implement hasCode based on equals() elements to fullfil hasCode/equals contract 2022-12-19 09:37:01 +01:00
LoadMoreResultsItem.kt lint: move from resource IDs to fixed, unique Int values for view types 2023-04-14 22:07:00 +02:00
MentionAutocompleteItem.java add support for group mentions 2023-04-19 12:05:54 +02:00
MessageResultItem.kt lint: move from resource IDs to fixed, unique Int values for view types 2023-04-14 22:07:00 +02:00
MessagesTextHeaderItem.kt lint: move from resource IDs to fixed, unique Int values for view types 2023-04-14 22:07:00 +02:00
NotificationSoundItem.java Spotbug: Method stores return result in local before immediately returning it 2022-12-29 11:37:18 +01:00
ParticipantItem.java WIP: show conversation avatar 2023-05-01 12:25:19 +02:00