Constants in Android xml file -


i have code in android settings xml file (res/xml/settings.xml):

    <edittextpreference             android:title="@string/settings_date_format"             android:summary="@string/settings_date_format_summary"             android:key="settingsdateformat"             android:defaultvalue="@string/config_settings_date_format_default_value" /> 

and string this:

<string name="config_settings_date_format_default_value">dd mmm yyyy, hh:mm</string> 

as can see, i'm setting default value string. however, i'd have these default values stored somewhere else doesn't make sense put them in res/values/strings.xml

is possible me put them in new file called "config.xml" example?

you can add xml file in values folder , name want.

on compilation time, compiler scan resources folders, regardless of files , names, , create lookup table resources.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -