views:

77

answers:

1

Hi stackies,

I'm battleing with extending a TextView for my Android app. I'd like to create "bubbles" to display text messages in a conversation, similar to the native iPhone SMS conversations.

Is there a way to implement the resizing of a background image without just stretching it? I'd like to have a single background image that keeps it's corners but get stretched only in defined areas. I think this should be possible because I've seen it in a SMS app, but I wonder how to implement that.

Thanks for your help!

Best regards S.

+2  A: 

What you are looking for is a 9.patch image. See draw 9 patch documentation.

Mayra
Thank you! That did the trick! :)
Sotapanna