If you are writing your own IME, try using drawable for a FOREground image (with android: keyIcon in XML or Key.icon in Java), which is equal to the size of the entire key. This is essentially equivalent to setting the background image of a single key. Of course, you will also have to include the foreground in your image.
You will also have to use a background image without indentation, so it does not look around the edges. For more information on how to do this, see this post: How ppppppppppp Works in Android Applications.
Barry
Barry fruitman
source share