OK - I'm real close - except it shows the PRIOR value after I change
the selected item on the list. Each time I make a change, it is one
change behind on the view that is displayed.
public class ProteusPreferences extends PreferenceActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
ListPreference configIdPreference =
(ListPreference)findPreference(PREFS_CONFIG_ID_KEY);
if (configIdPreference != null) {
configIdPreference.setSummary(configIdPreference.getValue());
configIdPreference.setOnPreferenceChangeListener(new
OnPreferenceChangeListener()
{
@Override
public boolean onPreferenceChange(Preference
preference, Object newValue)
{
ListPreference configIdPreference =
(ListPreference)preference;
configIdPreference.setSummary(configIdPreference.getValue());
return true;
}
});
}
}
}
--
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