top of page

A few perfect 9-Patches for use in Android app or Website

Most of the 9-Patches provided have BAD patches which can affect the performance of your app. Andriod optimizes the Graphics assets which can mean the display can vary from Cell phone to cell phone. Here I provide perfect 9-Patch images. They are nift little tools to prep up your app.

This 9-Patch is a perfect 9 patch for Back pane of a Edit Text. This one has large padding for the image and is best suited for 1 line Edit Text.

And these 9 Patches can be used for Buttons. Again best suited for Single line text with a white color.

Pressed state

The state XML which is used to apply these buttons can be like this....

<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <!--Add the name of file pill_press_green--> <item android:drawable="@drawable/button_press" android:state_pressed="true" /> <item android:drawable="@drawable/button_hover" android:state_focused="true" /> <item android:drawable="@drawable/button_casual" /> </selector>

Please feel free to use the resources, I would like to have Credit if possible, but it is not mandatory. This I release in Public domain.


RECENT POSTS:
SEARCH BY TAGS:
No tags yet.
bottom of page