I don't know a lot about *.properties files, but i think that is what
I'm looking for.

I'm creating a project that will first be released under one company
name, and then later under another company name. I have been asked to
design the project in a way that all i have to do is switch out a
value and the images/styling will update accordingly.

So let's say I have a file (not sure what type of file) that contains:

product=ob

Then I could set up my *.java and layout *.xml files something like
this:

JAVA: setContentView(R.layout.login_${product})
Layout: <ImageView android:src="@drawable/logo_${product}" />,
<TextView style="@style/FormText${product}" />
Styles: <style name="Theme.AppBackground" parent="android:Theme"><item
name="android:windowBackground">@drawable/back_theme_${product}</
item></style>

Then all i do is change the value of 'product' in one file and
everything updates for the next build.

Does anyone know how to do this? Are there separate methods for doing
it in JAVA files vs XML files?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to