I am a very beginner and I need someone to tell me, which way instant messengers GUI with bubbles are done. Is it just a ScrollView with TextViews with 9-patched backgrounds? And which way the new ones get created at the very bottom? Or is there any library to implement all this? How to make it on Android? Just point me to the technology.
Asked
Active
Viewed 8,840 times
2 Answers
9
Regarding showing the all the chat messages you will use ListView
.
Each item will show single message from user.
You have to provide two types of row, one for the sender and other for receiver.
and regarding speech bubble you need to work with 9 patch images.
Edit: I've written a blog post about Android Speech Bubble. may be of some help for you. :)

Community
- 1
- 1

Adil Soomro
- 37,609
- 9
- 103
- 153
-
and I'll need to add new items to the bottom, and then notifydatasetchanged and then scroll to the bottom, right? – Adel Nizamuddin May 25 '12 at 10:52
3
Try to use this tutorial it's very helpful:
First you have to create your 9-patch drawable for the bubble view
Second Build your two custom rows for your ui one with a bubble that points to the right and onother to the left
Finally use a custom adapter to bind data to your views
Cheers hope this gonna be a starting point to the solution

K_Anas
- 31,226
- 9
- 68
- 81