Note These background methods go all the way back to the View class As a result most of the UI controls have this background support

Android also supports a special type of image called a stretchable image. This is simply a kind of .png where parts of the image can be specified as static and stretchable. Android provides a tool called the Draw 9-patch tool to specify these regions. (You can read more about it at

Once the .png image is made available, you can use it as any other image. It comes in handy when used as background for buttons where the button has to stretch itself to accommodate the text.

0 0

Post a comment