Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Balloon in Chatting Android Application

I've to develop an android application that allows users to chat I want to make textView that handle their conversations in Balloon as shown in the picture below ,,

can anyone inform me how can I do that ????

thanks in advance

enter image description here

like image 835
Samiah Avatar asked Apr 09 '12 09:04

Samiah


2 Answers

create two balloon images (for sent and received messages), make them 9 patch and set them as background to a layout which contains conversation.

like image 135
Buda Gavril Avatar answered Sep 21 '22 02:09

Buda Gavril


You will use 9 Patch images for this.

for showing them, you will use ListView and each row item will contain text and that 9 patch chat bubble background.

Lot of discussion are available:

  • I've written a blog post about android chat bubbles, you can find the open-source code there too.
  • For example this stackoverflow post.
  • Speech bubble popups containing a View post will also help you.
like image 22
Adil Soomro Avatar answered Sep 24 '22 02:09

Adil Soomro