[android-developers] Re: Defining a ListPreference

2013-01-05 Thread dashman
you mean it's expecting a value that starts with a alpha letter.

otherwise a number there should be fine - actually i think it might be in 
hex format not sure.


On Friday, January 4, 2013 7:47:54 PM UTC-5, Jonathan S wrote:
>
> on string-array, it is expect to have string values. you have to do some 
> java code to set theme then restarts the activity.
>
> On Friday, January 4, 2013 5:15:36 PM UTC-5, dashman wrote:
>>
>> I've got a ListPreference
>>
>> > android:key="themes_pref"
>> android:entries="@array/Themes"
>> android:entryValues="@array/ThemesValues" />
>>
>> The entryValues points to an array, defined as:
>>
>>
>> @style/AppBaseThemeLight
>> @style/AppBaseThemeDark
>> 
>>
>> I'm trying to get the array to hold the constant values for the given 
>> themes.
>>
>> Defined as:
>>
>> 

[android-developers] Re: Defining a ListPreference

2013-01-04 Thread Jonathan S
on string-array, it is expect to have string values. you have to do some 
java code to set theme then restarts the activity.

On Friday, January 4, 2013 5:15:36 PM UTC-5, dashman wrote:
>
> I've got a ListPreference
>
>  android:key="themes_pref"
> android:entries="@array/Themes"
> android:entryValues="@array/ThemesValues" />
>
> The entryValues points to an array, defined as:
>
>
> @style/AppBaseThemeLight
> @style/AppBaseThemeDark
> 
>
> I'm trying to get the array to hold the constant values for the given 
> themes.
>
> Defined as:
>
>