Thanks - Here is a little more detail - I have a PreferenceActivity
and preferences.xml file that look something like the following. How
do I modify this to put the ListPreference.getEntry value into the
view? Maybe I can override onContentChanged(), call findPreference()
and call Preference.setSummary()? Or is there is a way to specify
that in the XML layout?
public class ProteusPreferences extends PreferenceActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
}
}
- - - - res/xml/preferences.xml - - - -
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/
android">
<PreferenceCategory android:title="Development Mode">
<ListPreference android:persistent="true"
android:title="Configuration Id" android:key="CONFIG_ID"
android:defaultValue="@string/PREFS_CONFIG_ID" android:entries="@array/
configIdsDisplay" android:entryValues="@array/configIds" />
</PreferenceCategory>
</PreferenceScreen>
--
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