Skip to content Skip to sidebar Skip to footer

Create Custom Background Android Like This Chat Shape

**How to achieve this ** i tried 9 patch there i cant make this and no direct one available

Solution 1:

This is a job for 9-patch images.

Here is one of many examples with a gradient background. 9-patch with callout and gradient background

The expander bars above, below, and to the sides of your image control where the image stretching can occur and where the text padding lies. Here is how to keep the callout in an arbitrary location of the image: enter image description here

Here is an interactive online tool for drawing the expanders and downloading the result once you find or finish creating your gradient/callout image: http://draw9patch.com

Solution 2:

I would recommend these styles: http://www.dibbus.com/2011/02/gradient-buttons-for-android/

Just create a View and set the android:background="@drawable/blueButtonStyle"

Post a Comment for "Create Custom Background Android Like This Chat Shape"