I am learning how to make live wallpapers, but I have a dilemma. I'm sure everyone who starts, too.
There are so many resolution screen sizes, how can I just make one set of illustrations to scale in the code for all versions? I know that this was done, since I saw images in apk for many of them, and they get scaling.
If it was just one image that did not need any positioning, it would be easy, but my problem is that I need to get a background image that is scalable for all devices, I also have animations that fit into a specific the x and y position on this background image to match, so that it looks like an animated whole background, but only parts of it (my way of staying away from 300 images frame by frame is live wallpaper).
Thus, the background image needs to be rescaled, and the animations must also be scaled to accurately indicate the percentage as the background image, and they need to sit at a specific x and y position.
Any help would be appreciated so that I can do this.
I'm tired of several things, I decided that I would do the scaling for the whole example: int scaler; then in onSurfaceChanged scaler = width / 1024; // if the larger image is 1024. this will give me a ratio to work with everywhere. then scale accordingly using scaleBitmap, multiplying the scaling by the height and width of the image, and also use the same scaling device for an example of placing an image x, say, at 50, scale it using the same thing x = scaler * 50; which should take care of scaling and positioning, just translate all this into java - the next lesson, since I'm new to java, I used the program for flash and php, but these are very different things, get used to it a bit, The next thing is how to pan the width, when you move the screen from side to side, how to make the image display the next puzzle that I figured out. Now it just shows the same width, despite the fact that the width is twice as large as the surface shows. If you have an answer or somewhere, I can find out information about this, which will be very appreciated.