I'm currently working on a 2D application using the canvas, and I curious how other developers would handle this issue.
The application has a background that then has bitmaps drawn on top of it in very specific locations. Obviously with screen resolutions this becomes a bit problematic. First, I'm assuming I'll need to create a new background for each phone resolution I want to support (or I can allow the SDK to resize it for me?) The bigger question is I have 5-10 bitmaps I need to place on very specific locations on top of the background, they will animate and do various things so they are not part of the background.. Since the resolution changes affect the placement of these items, I'm curious on the best way to handle the placement? I know with certain assets you can append -320x240 for instance to the filename and the sdk will pull the asset that fits the resolutions. I thought maybe i could create an array asset in the xml folder, but was unsure if this would work with the extension method.. then I could just create an xml file of positions per screen resolution. The other option is just to code a object of some sort to store all the positions at each resolutions... I have a feeling I'm missing something to make this far easier so hoping someone here might have some insight? Since the scaling of the background will change both the x and y position of the items on top of it, I'm not sure I can just easily compute their placement? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

