I have an image as background in my android application. The image contains some leaves in it (like image map). To let the user to click on the leaves, I've put some Button View on each of the buttons in the image. For the app to be scalable in size, I calculate the left, top, width and height for the new size dynamically with formula below (for example for left parameter):
left = left * newWidth / oldWidth
Frankly speaking, it works fine. But I think there must be a better way to do this job in android. If so, what is that best way?