Themes are normally stored inside .apk files, and not as text xml, but
rather pre-compiled into a more efficient semi-binary format.
What this means is that there is no way to load Android XML resources on
the device from an arbitrary text-format XML file, it has to go through
the proper steps: first compiled to binary during build time, then
packaged as a resource.
While you *might* be able to write your own code to load themes from a
text xml file, it might be easier to follow the road already taken by
many existing Android apps: package your theme as another package, and
load the theme from it.
For examples, just search for "theme" in Market.
-- Kostya
15.03.2011 17:26, Alessio Grumiro ?????:
Sorry,
i used "Reply" instead of "Reply at all".
Suppose at compile time you have in themes.xml
<style name="itemText">
<item name="android:textColor">#000</item>
</style>
You release application with that themes.xml file in res/values
Ok, now i want change text color without re-publish the application.
So i need to download new themes.xml
<style name="itemText">
<item name="android:textColor">#FFF</item>
</style>
Well, how i can apply new themes.xml in my application?
The task is similar to change css file in a web package.
Thank you.
2011/3/14 TreKing <[email protected] <mailto:[email protected]>>
2011/3/14 TreKing <[email protected] <mailto:[email protected]>>
On Mon, Mar 14, 2011 at 8:31 AM, Alessio Grumiro
<[email protected] <mailto:[email protected]>> wrote:
Are you joking?
No.
Android compiles resource in res/values/.
Correct.
If you download a file from network, i don't know how
you can use it like a resource file.
True, you can't. You'd have to write your own parser, I
would think.
If you have an example, please give me.
I does not, sorry.
-------------------------------------------------------------------------------------------------
TreKing
<http://sites.google.com/site/rezmobileapps/treking> -
Chicago transit tracking app for Android-powered devices
On Mon, Mar 14, 2011 at 8:36 AM, Alessio Grumiro
<[email protected] <mailto:[email protected]>> wrote:
Problem was not the parser, but how i can apply styles at runtime?
Moving discussion back to the group.
I'd look at the source to see how the platform does it.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> -
Chicago transit tracking app for Android-powered devices
--
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
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
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
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