How to create a bubble instant messaging GUI

I'm a very newbie and I need someone to tell me which direction the bubble instant messaging GUI is working in. Is it just a ScrollView with 9-patch TextViews? And how are new ones created at the very bottom? Or is there a library to implement all this? How to do it on Android? Just point me to the technology.

Here's a quick pic of what I want

+6
source share
2 answers

Regarding the display of all chat messages, you will use a ListView .

Each item displays one message from the user.

You must provide two types of strings , one for the sender and one for the receiver.

and with regard to the speech bubble, you will need with 9 patch images .

Edit: I wrote a blog post about the Android Speech Bubble . can help you. :)

+9
source

Try using this tutorial , it is very useful:

First you need to create your 9-patch to view the bubbles

Second Create your two custom strings for your ui with a bubble that points left and right

Finally, use a custom adapter to bind data to your views.

Cheers hope this will be the starting point for a solution

+3
source

Source: https://habr.com/ru/post/916652/


All Articles