Reputation: 27186
I'm confused about device independent drawing on Android.
Or rather, I have a canvas and I'm just drawing lines, rectangles and ovals on it.
Is there a way of doing this in a device independent viewport so that it just fits whatever screen its on?
I'm not trying to use bitmaps. Or do different layouts for different screen-sizes. I'm not too worried about the aspect ratio being distorted on very odd screens.
So I was hoping there was some kind of mode I could use where it took the arguments to drawOval etc. as device independent and just scaled them to fit the screen at whatever resolution and pixel density it had.
Is there something like this?
Or do I need to recalculate and scale all the coordinates myself?
Upvotes: 0
Views: 123