Loading core/java/android/text/TextUtils.java +11 −0 Original line number Diff line number Diff line Loading @@ -258,6 +258,17 @@ public class TextUtils { return ret; } /** * Returns list of multiple {@link CharSequence} joined into a single * {@link CharSequence} separated by localized delimiter such as ", ". * * @hide */ public static CharSequence join(Iterable<CharSequence> list) { final CharSequence delimiter = Resources.getSystem().getText(R.string.list_delimeter); return join(delimiter, list); } /** * Returns a string containing the tokens joined by delimiters. * @param tokens an array objects to be joined. Strings will be formed from Loading core/res/res/values/strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3153,4 +3153,7 @@ <!-- Description of for the status bar's icon that the device is locked for accessibility. [CHAR LIMIT=NONE] --> <string name="status_bar_device_locked">Device locked.</string> <!-- Delimeter used between each item in a textual list; for example "Alpha, Beta". [CHAR LIMIT=3] --> <string name="list_delimeter">", "</string> </resources> Loading
core/java/android/text/TextUtils.java +11 −0 Original line number Diff line number Diff line Loading @@ -258,6 +258,17 @@ public class TextUtils { return ret; } /** * Returns list of multiple {@link CharSequence} joined into a single * {@link CharSequence} separated by localized delimiter such as ", ". * * @hide */ public static CharSequence join(Iterable<CharSequence> list) { final CharSequence delimiter = Resources.getSystem().getText(R.string.list_delimeter); return join(delimiter, list); } /** * Returns a string containing the tokens joined by delimiters. * @param tokens an array objects to be joined. Strings will be formed from Loading
core/res/res/values/strings.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3153,4 +3153,7 @@ <!-- Description of for the status bar's icon that the device is locked for accessibility. [CHAR LIMIT=NONE] --> <string name="status_bar_device_locked">Device locked.</string> <!-- Delimeter used between each item in a textual list; for example "Alpha, Beta". [CHAR LIMIT=3] --> <string name="list_delimeter">", "</string> </resources>