No, you can't do it in a simple way. What you're literally asking, you can't do at all. The original XML file no longer exists, having been compiled by the resource compiler into a binary format. Even if it still existed, it'd be part of your .apk, and thus still not modifiable.
You could, of course, read an XML file, and interpret it, and change all the relevant pieces of your UI. I expect that's more trouble than it's worth to you, unless what you want to customize this way is pretty limited. You also don't want to slow down application startup by contacting a server. You'd have to display some temporary UI while the user waits for you to download the file. That's probably not going to be a good user experience. On Dec 26, 3:48 am, maccoy <[email protected]> wrote: > I have declared a list of "Style" resources in my application and this > s is built and deployed in the client device. > Can i download another "newStyles" resources from a server and replace > the oldStyles. > Mainly i want to change the color, font ..etc.. in runtime or each > time the application loads. > I was thinking like, > Get the new XML (the same format as the original) and replace it while > the application starts.. so that the new styles are in effect. > <style name="OriginalStyle"> > <item name="android:textColor">#FF00FF</item> > <item name="android:typeface">monospace</item> > </style> > > Download this : > <style name="OriginalStyle"> > <item name="android:textColor">newColor</item> > <item name="android:typeface">neeTypeFace</item> > </style> > > Can i do this in a simple way? -- 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

