You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some suggestions in issues: #4#5 However, the more I dig into the code the more different ideas I have. It seems the best solution would be to provide an API to create some sort of a factory to draw a buble and include all the information in the chat message that is needed.
Of course, I can write my own version of ChatBubbleView but it would be a waste of a very good piece of code which for the most part is perfectly fine. I suppose you plan to further work on it so more stuff would be coming in the future.
So, ways to inject customizations would be the best approach.
The text was updated successfully, but these errors were encountered:
I could potentially prepare a pull request when I am more familiar with the code but it would be very useful to have some instructions on how to build the library under IDE (IntelliJ ideally).
I think a sufficiently flexible approach would be to allow for overriding the border of the bubble in CSS. You could then use a 9-piece image border (e.g. border-image, border-image-slice directive) to use any image as the background. I'm working on a proof-of concept for this now.
The factory API is also possible, but should be resorted to after simpler CSS solutions.
Yes, CSS for drawing the bubble would be ideal as then it could be easily customized or we could have a few different "skins".
But factory would be very useful as well to allow for inclusion of custom information. Like, now I would like to have an avatar and user name for own messages as well. Also, I have in mind even more functionality to be added. This would be especially important to implement a good group chat app.
I had some suggestions in issues: #4 #5 However, the more I dig into the code the more different ideas I have. It seems the best solution would be to provide an API to create some sort of a factory to draw a buble and include all the information in the chat message that is needed.
Of course, I can write my own version of ChatBubbleView but it would be a waste of a very good piece of code which for the most part is perfectly fine. I suppose you plan to further work on it so more stuff would be coming in the future.
So, ways to inject customizations would be the best approach.
The text was updated successfully, but these errors were encountered: