public static interface SettingSelectionDialogPreference.SummaryTextBuilder
SettingSelectionDialogPreference to build its
summary text from the current selection of entry items.SettingSelectionDialogPreference.setSummaryTextBuilder(SummaryTextBuilder)| Modifier and Type | Method and Description |
|---|---|
SettingSelectionDialogPreference.SummaryTextBuilder |
appendEntry(CharSequence entry)
Appends the given entry into content of this builder.
|
CharSequence |
build()
Builds summary text from the current content (entries) appended into this builder.
|
SettingSelectionDialogPreference.SummaryTextBuilder |
clear()
Clears the current content of this builder.
|
SettingSelectionDialogPreference.SummaryTextBuilder clear()
This is called by the associated selection preference whenever a new summary text is about to be build.
SettingSelectionDialogPreference.SummaryTextBuilder appendEntry(@NonNull CharSequence entry)
This is called by the associated selection preference for each selected entry.
entry - The entry to be appended.@NonNull CharSequence build()
This is called by the associated selection preference when all currently selected entries have been appended into this builder.