public class ChipSpanChipCreator extends java.lang.Object implements ChipCreator<ChipSpan>
| Constructor and Description |
|---|
ChipSpanChipCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureChip(ChipSpan chip,
ChipConfiguration chipConfiguration)
Applies the given
ChipConfiguration to the given Chip. |
ChipSpan |
createChip(android.content.Context context,
java.lang.CharSequence text,
java.lang.Object data)
Creates a chip from the given context and text.
|
ChipSpan |
createChip(android.content.Context context,
ChipSpan existingChip)
Creates a chip from the given context and existing chip.
|
public ChipSpan createChip(android.content.Context context, java.lang.CharSequence text, java.lang.Object data)
ChipCreatorcreateChip in interface ChipCreator<ChipSpan>context - the Context to use to initialize the chiptext - the text the Chip should representdata - the data to associate with the Chip, or null to associate no datapublic ChipSpan createChip(android.content.Context context, ChipSpan existingChip)
ChipCreatorcreateChip in interface ChipCreator<ChipSpan>context - the Context to use to initialize the chipexistingChip - the chip that the created chip should be based onpublic void configureChip(ChipSpan chip, ChipConfiguration chipConfiguration)
ChipCreatorChipConfiguration to the given Chip. Use this method to customize the appearance/behavior of a chip before
adding it to the text.configureChip in interface ChipCreator<ChipSpan>chip - the chip to configurechipConfiguration - the configuration to apply to the chip