Files
frameworks_base/core/java/android
Kenny Root ba636df784 Allow ListPreference summary to use entry
Currently when ListPreferences are used in a PreferenceActivity, the summary
values are set to the same as the current index in mEntryValue. This patch
adds the ability for a string substitution to be used in the summary
which points to the corresponding entry in mEntries to aid in
localization.

For example a preference may be named "color" with the following attributes
in the locale "de" (German):

mEntryValues = { "red", "green", "blue" }
mEntries = { "rot", "grün", "blau" }
mSummary = "Die Farbe ist %1$s."

getSummary() returns "Die Farbe ist grün."

Change-Id: Iea169ac3d1c9d6290d853fc7c67a7c4c8a11bb90
2010-07-13 10:28:44 -07:00
..
2010-02-17 16:46:42 -08:00
2010-05-18 14:36:48 -07:00
2010-05-19 09:36:55 -07:00
2010-06-18 12:40:42 -07:00
2010-01-29 13:29:51 -08:00
2010-06-08 13:17:41 -07:00
2010-06-15 09:30:31 -07:00
2010-06-09 07:14:36 -07:00
2010-07-06 20:42:22 +02:00
2010-06-11 13:08:02 -07:00
2010-06-14 11:06:33 -07:00