
If I want to use the image as button background, how can I do it? 9 patch? Or fixed image(ldip/mdip/hdip)?
Thanks!
edit:
thanks for the two replies, I know the tool draw9patch, but I don’t know how to define the vertical area so it won’t destroy the gradient?
Thanks!
I believe that a 9-patch would be the more elegant solution. You can use the “draw9patch” tool from the “tools” folder in your Android SDK to do this. The official Android documentation gives a good overview on how to use this : http://developer.android.com/guide/developing/tools/draw9patch.html