Displaying bitmaps in relative positions
Posted
by JonF
on Stack Overflow
See other posts from Stack Overflow
or by JonF
Published on 2010-06-09T01:49:29Z
Indexed on
2010/06/09
1:52 UTC
Read the original article
Hit count: 235
I'd like to put a couple images on a surfaceview. I understand that the screen sizes of android devices can vary, so I don't think I can just use an x y position or I might end up placing it off different screens. Say I want to put two boxes in the center of the screen, a blue one and a red one. The blue one is to the left of the red one. How can I accomplish that while accounting for different screen sizes?
© Stack Overflow or respective owner