I would like show my text messages like this in picture that i have attached. Please give me some hints on that...
Sample text that i like to have:
I would like show my text messages like this in picture that i have attached. Please give me some hints on that...
Sample text that i like to have:
First, I would create a small empty speech balloon as a 9-patch. This will be used as your TextView background and will expand as necessary to encompass the text. I guess you'll need to create one for every color you intend to use unless someone can tell me how to add color to such a thing.
Next, I would create a layout.xml file that contains some sort of container widget (LinearLayout or RelativeLayout probably) that holds a single TextView that occupies the left half of the container. Make another that puts the TextView in the right half.
Inside the container, put a TextView that uses the above-mentioned 9-patch image as the background.
Then, I would use a ListView for the overall container for your text messages. Construct an Adapter subclass that manages your list of text messages and uses a LayoutInflator to expand the above-mentioned layout.xml files to return the Views to be displayed by the ListView.
That's how I would do it anyway. Implementation details are left as an exercise for the reader.