Android: Button Image Drawable Scalable For Other Screen Sizes?
I have a button that I am loading a drawable for. The image was way bigger than the button so I resized the image to 38 by 38 pixels (actual resize not code or xml). Now, when I lo
Solution 1:
I guess you already know this from reading the best practices, but perhaps you could use a 9-patch image. It does not suit all situations, but if you have an image that you simply want to extend the edges of, it is the way to go.
If you can't use 9-patch for the specific type of image, try your image on a couple of different screen sizes in the emulator before you get worried about it :). My experience is that drawables will scale quite well by default.
Post a Comment for "Android: Button Image Drawable Scalable For Other Screen Sizes?"