I'm extremely new to programing in its entirety, and have been slowly learning by tweaking an open source messaging app. One thing I'm trying to implement is having animated .gif messages play in the chat with rounded corners, and cannot for the life of me find anything about this that works for me. I can either have rounded corners via roundedimageview but gifs don't play in the chats, or I can have gifs play in chat with the normal imageview but not have rounded corners.
I've attempted to add a cardview to get the result I'm after, however every example I find on how to add it results in the app crashing whn loading media files.
The source code can he found here: https://codeberg.org/RogueRen/cheogram-android-modern
And the file controling the images I'm wanting to work on are in src/main/layout/message_content.xml
Attempted: Rouded image view, standard image view, card view, card view containing an image view