Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Message App Style Speech Bubbles (iPhone)

Has anyone tried to implement the speech-bubble view found in the iPhone Message app? I'm trying to use the same type of view in my own app but not sure how to go about it.

One idea is to use a scroll view with labels and just have the background image of the labels be the text bubble. Not sure how well this work though. Any other thoughts?

— asked May 5th 2010 by Bart Jedrocha
  • bubbles
  • iphone
  • message
  • speech

1 Answer

  • That'd probably be the best way to go about it (either in a label or view). However, you'll most likely need to chop the bubble background image up into 3 parts (assuming your bubbles will change their height but never their width). That way, the bubble can expand to fill larger amounts of text or other content, similar to the SMS app.

    Or, you may in fact be able to pull it off with a table view, although you'll need to do some heavy tweaking of the table view rows. That way, you can allow for the edit and delete features of the individual messages (since they'd really just be rows), again similar to the SMS app.

    — answered May 6th 2010 by Bill Labus
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.