Well, I have some issues showing ImageButtons in different dpi devices:
For example, If I have a .png button with 150×60 px. And try to use that button in my app, using layout_height = wrap_content and layout_width = wrap_content the button seems to look bigger in a hdpi device.
To show the button in the real size I have to convert the size to dpi, for example:
layout_height = 100dp and layout_width = 40dp
But I’m not very comfortable using hardcoded values in sizes.
I’m doing something wrong?
Many thanks for the help. And Sorry for my bad english 🙂
Well I decided to use 9-patch drawables to draw buttons 🙂