You have to use a LayerDrawable but it can be used only from XML (for now.) You can also simply create your own Drawable, it's pretty easy.
On Sun, Nov 30, 2008 at 11:40 PM, Kakyoin <[EMAIL PROTECTED]> wrote: > > Hi. > > I'm playing with the Home sample (the one that is bundled with the > SDK) > > I can change the Home screen background using this: > > > getWindow().setBackgroundDrawable(image_mountain); > > Now I have a mountain as a background of my Home screen. > > Now let's assume I have a picture of a moon. (image_moon) > > > > Question: Is it possible to... > > 1. programmatically put the moon on my mountain image. > 2. then set the new drawable: "Mountain with the Moon on top" as my > Home screen background? > > I've explored the LayerDrawable class but it doesn't seem to solve my > problem. > > Thank you in advance. > > > > > -- Romain Guy www.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

