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-06-18 12:44:20 -07:00
2010-06-07 16:37:22 -07:00
2010-06-25 09:08:12 -07:00
2010-05-10 13:48:37 -07:00
2010-06-18 11:36:35 -07:00
2010-03-16 09:59:06 -07:00
2010-06-25 09:08:12 -07:00
2010-06-02 08:54:47 -07:00
2010-03-29 18:12:24 -07:00
2010-04-01 12:05:26 -07:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%