I have an XML preferences screen which is handled by addPreferencesFromResource.

On it, there is a ListPreference, for which I want the summary to
contain the current
value of that preference. I think this would be a common requirement,
as otherwise
you could not see the present value of the preference without expending a click.

I read that the summary field supports resource references, and I see that I can
refer to preferences as android:summary="@+preference/prefname" in my
ListPreference.

Clearly this is why resource references would be supported in this field.

However, when I try this, instead of the present value of prefname, the text
"false" appears as the summary.

Does anybody know how to display a current value without taking the seemingly
ridiculous step of rewriting the entire (large) preference screen in Java?

I hope I have overlooked something simple.

P. V. Nasby

-- 
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

Reply via email to