I have an android app with an background image. My goal is to create 3 or 4 background images and give the possibility to the user to change the background.
Actually, I have 4 images named bg1.png, bg2.png, bg3.png and bg4.png. I have think about something to declare an string value "background " in Strings.xml with the name of the image. The name of the background image will allways be take from the background string and when the users will change the background, this wil change only the value of the string background.
Is this idea good or is there something easyer? How could I set the background of my layout in the xml layout file with the "background" string's value ? Shuld i do this programatically?
Thank you.