Skip navigation links
A B C D E F G H I N O P R S T W 

A

addChipTerminator(char, int) - Method in class com.hootsuite.nachos.NachoTextView
 
addChipTerminator(char, int) - Method in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
Adds a character as a chip terminator.
addChipTerminator(char, int) - Method in class com.hootsuite.nachos.terminator.DefaultChipTerminatorHandler
 
afterTextChanged(Editable) - Method in class com.hootsuite.nachos.NachoTextView
 
applyConfiguration(Editable, ChipConfiguration) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
applyConfiguration(Editable, ChipConfiguration) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Configures this ChipTokenizer to produce chips with the provided attributes.
applyConfiguration(Editable, ChipConfiguration) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
AUTOCORRECT_SEPARATOR - Static variable in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 

B

BaseChipTokenizer - Class in com.hootsuite.nachos.tokenizer
Base implementation of the ChipTokenizer interface that performs no actions and returns default values.
BaseChipTokenizer() - Constructor for class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
beforeTextChanged(CharSequence, int, int, int) - Method in class com.hootsuite.nachos.NachoTextView
 
BEHAVIOR_CHIPIFY_ALL - Static variable in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
When a chip terminator character is encountered in newly inserted text, all tokens in the whole text view will be chipified
BEHAVIOR_CHIPIFY_CURRENT_TOKEN - Static variable in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
When a chip terminator character is encountered in newly inserted text, only the current token (that in which the chip terminator character was found) will be chipified.
BEHAVIOR_CHIPIFY_TO_TERMINATOR - Static variable in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
When a chip terminator character is encountered in newly inserted text, only the text from the previous chip up until the chip terminator character will be chipified.

C

Chip - Interface in com.hootsuite.nachos.chip
 
CHIP_SPAN_SEPARATOR - Static variable in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
The character used to separate chips internally is the US (Unit Separator) ASCII control character.
ChipConfiguration - Class in com.hootsuite.nachos
 
ChipCreator<C extends Chip> - Interface in com.hootsuite.nachos.chip
Interface to allow the creation and configuration of chips
chipify(int, int) - Method in class com.hootsuite.nachos.NachoTextView
Replaces the text from start (inclusive) to end (exclusive) with a chip containing the same text
chipifyAllUnterminatedTokens() - Method in class com.hootsuite.nachos.NachoTextView
Chipifies all existing plain text in the field
ChipifyingNachoValidator - Class in com.hootsuite.nachos.validator
A NachoValidator that deems text to be invalid if it contains unterminated tokens and fixes the text by chipifying all the unterminated tokens.
ChipifyingNachoValidator() - Constructor for class com.hootsuite.nachos.validator.ChipifyingNachoValidator
 
ChipInfo - Class in com.hootsuite.nachos.chip
 
ChipInfo(CharSequence, Object) - Constructor for class com.hootsuite.nachos.chip.ChipInfo
 
ChipSpan - Class in com.hootsuite.nachos.chip
A Span that displays text and an optional icon inside of a material design chip.
ChipSpan(Context, CharSequence, Drawable, Object) - Constructor for class com.hootsuite.nachos.chip.ChipSpan
Constructs a new ChipSpan.
ChipSpan(Context, ChipSpan) - Constructor for class com.hootsuite.nachos.chip.ChipSpan
Copy constructor to recreate a ChipSpan from an existing one
ChipSpanChipCreator - Class in com.hootsuite.nachos.chip
 
ChipSpanChipCreator() - Constructor for class com.hootsuite.nachos.chip.ChipSpanChipCreator
 
ChipTerminatorHandler - Interface in com.hootsuite.nachos.terminator
This interface is used to handle the management of characters that should trigger the creation of chips in a text view.
ChipTokenizer - Interface in com.hootsuite.nachos.tokenizer
An extension of Tokenizer that provides extra support for chipification.
com.hootsuite.nachos - package com.hootsuite.nachos
 
com.hootsuite.nachos.chip - package com.hootsuite.nachos.chip
 
com.hootsuite.nachos.terminator - package com.hootsuite.nachos.terminator
 
com.hootsuite.nachos.tokenizer - package com.hootsuite.nachos.tokenizer
 
com.hootsuite.nachos.validator - package com.hootsuite.nachos.validator
 
configureChip(C, ChipConfiguration) - Method in interface com.hootsuite.nachos.chip.ChipCreator
Applies the given ChipConfiguration to the given Chip.
configureChip(ChipSpan, ChipConfiguration) - Method in class com.hootsuite.nachos.chip.ChipSpanChipCreator
 
createChip(Context, CharSequence, Object) - Method in interface com.hootsuite.nachos.chip.ChipCreator
Creates a chip from the given context and text.
createChip(Context, C) - Method in interface com.hootsuite.nachos.chip.ChipCreator
Creates a chip from the given context and existing chip.
createChip(Context, CharSequence, Object) - Method in class com.hootsuite.nachos.chip.ChipSpanChipCreator
 
createChip(Context, ChipSpan) - Method in class com.hootsuite.nachos.chip.ChipSpanChipCreator
 

D

DefaultChipTerminatorHandler - Class in com.hootsuite.nachos.terminator
 
DefaultChipTerminatorHandler() - Constructor for class com.hootsuite.nachos.terminator.DefaultChipTerminatorHandler
 
deleteCharacter(boolean) - Method in class com.hootsuite.nachos.terminator.TextIterator
 
deleteChip(Chip, Editable) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
deleteChip(Chip, Editable) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Removes a chip and any text it encompasses from text.
deleteChip(Chip, Editable) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
deleteChipAndPadding(Chip, Editable) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
deleteChipAndPadding(Chip, Editable) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Removes a chip, any text it encompasses AND any padding text (such as spaces) that may have been inserted when the chip was created in ChipTokenizer.terminateToken(CharSequence, Object) or after.
deleteChipAndPadding(Chip, Editable) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
disableEditChipOnTouch() - Method in class com.hootsuite.nachos.NachoTextView
Disables editing chips on touch events.
draw(Canvas, CharSequence, int, int, float, int, int, int, Paint) - Method in class com.hootsuite.nachos.chip.ChipSpan
 

E

enableEditChipOnTouch(boolean, boolean) - Method in class com.hootsuite.nachos.NachoTextView
Enables editing chips on touch events.

F

findAllChips(int, int, Spanned) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
findAllChips(int, int, Spanned) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Searches through text for any chips
findAllChips(int, int, Spanned) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
findAllTokens(CharSequence) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
findAllTokens(CharSequence) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Searches through text for any tokens.
findAllTokens(CharSequence) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
findAndHandleChipTerminators(ChipTokenizer, Editable, int, int, boolean) - Method in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
Parses the provided text looking for characters marked as chip terminators through ChipTerminatorHandler.addChipTerminator(char, int) and ChipTerminatorHandler.setChipTerminators(Map).
findAndHandleChipTerminators(ChipTokenizer, Editable, int, int, boolean) - Method in class com.hootsuite.nachos.terminator.DefaultChipTerminatorHandler
 
findChipEnd(Chip, Spanned) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
findChipEnd(Chip, Spanned) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Finds the index of the character after the last character in text that is a part of chip
findChipEnd(Chip, Spanned) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
findChipStart(Chip, Spanned) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
findChipStart(Chip, Spanned) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Finds the index of the first character in text that is a part of chip
findChipStart(Chip, Spanned) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
findTokenEnd(CharSequence, int) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
findTokenEnd(CharSequence, int) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.
findTokenEnd(CharSequence, int) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
findTokenStart(CharSequence, int) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
findTokenStart(CharSequence, int) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Returns the start of the token that ends at offset cursor within text.
findTokenStart(CharSequence, int) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
fixText(ChipTokenizer, CharSequence) - Method in class com.hootsuite.nachos.validator.ChipifyingNachoValidator
 
fixText(ChipTokenizer, CharSequence) - Method in interface com.hootsuite.nachos.validator.NachoValidator
Corrects the specified text to make it valid.

G

getAllChips() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipAndTokenValues() - Method in class com.hootsuite.nachos.NachoTextView
Returns a combination of the chip values and token values in the text.
getChipBackground() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getChipBackground() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipCornerRadius() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getChipCornerRadius() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipHeight() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getChipHeight() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipHorizontalSpacing() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getChipHorizontalSpacing() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipTextColor() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getChipTextColor() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipTextSize() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getChipTextSize() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipTokenizer() - Method in class com.hootsuite.nachos.NachoTextView
 
getChipValues() - Method in class com.hootsuite.nachos.NachoTextView
Returns a List of the string values of all the chips in the text (obtained through Chip.getText()).
getChipVerticalSpacing() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getChipVerticalSpacing() - Method in class com.hootsuite.nachos.NachoTextView
 
getData() - Method in interface com.hootsuite.nachos.chip.Chip
 
getData() - Method in class com.hootsuite.nachos.chip.ChipInfo
 
getData() - Method in class com.hootsuite.nachos.chip.ChipSpan
 
getDataForSuggestion(Adapter, int) - Method in class com.hootsuite.nachos.NachoTextView
Returns a object that will be associated with a chip that is about to be created for the item at position in adapter because that item was just tapped.
getIndex() - Method in class com.hootsuite.nachos.terminator.TextIterator
 
getMaxAvailableWidth() - Method in class com.hootsuite.nachos.ChipConfiguration
 
getSize(Paint, CharSequence, int, int, Paint.FontMetricsInt) - Method in class com.hootsuite.nachos.chip.ChipSpan
 
getText() - Method in interface com.hootsuite.nachos.chip.Chip
 
getText() - Method in class com.hootsuite.nachos.chip.ChipInfo
 
getText() - Method in class com.hootsuite.nachos.chip.ChipSpan
 
getText() - Method in class com.hootsuite.nachos.terminator.TextIterator
 
getTokenValues() - Method in class com.hootsuite.nachos.NachoTextView
Returns a List of the string values of all the tokens (unchipped text) in the text (obtained through ChipTokenizer.findAllTokens(CharSequence)).
getWidth() - Method in interface com.hootsuite.nachos.chip.Chip
 
getWidth() - Method in class com.hootsuite.nachos.chip.ChipSpan
 

H

hasNextCharacter() - Method in class com.hootsuite.nachos.terminator.TextIterator
 

I

IllegalCharacterIdentifier - Interface in com.hootsuite.nachos.validator
 
invalidateCachedSize() - Method in class com.hootsuite.nachos.chip.ChipSpan
 
invalidateChips() - Method in class com.hootsuite.nachos.NachoTextView
Applies any updated configuration parameters to any existing chips and all future chips in the text view.
isCharacterIllegal(Character) - Method in interface com.hootsuite.nachos.validator.IllegalCharacterIdentifier
 
isValid(ChipTokenizer, CharSequence) - Method in class com.hootsuite.nachos.validator.ChipifyingNachoValidator
 
isValid(ChipTokenizer, CharSequence) - Method in interface com.hootsuite.nachos.validator.NachoValidator
Validates the specified text.

N

NachoTextView - Class in com.hootsuite.nachos
An editable TextView extending MultiAutoCompleteTextView that supports "chipifying" pieces of text and displaying suggestions for segments of the text.
NachoTextView(Context) - Constructor for class com.hootsuite.nachos.NachoTextView
 
NachoTextView(Context, AttributeSet) - Constructor for class com.hootsuite.nachos.NachoTextView
 
NachoTextView(Context, AttributeSet, int) - Constructor for class com.hootsuite.nachos.NachoTextView
 
NachoTextView.OnChipClickListener - Interface in com.hootsuite.nachos
 
NachoTextView.OnChipRemoveListener - Interface in com.hootsuite.nachos
 
NachoValidator - Interface in com.hootsuite.nachos.validator
Interface used to ensure that a given CharSequence complies to a particular format.
nextCharacter() - Method in class com.hootsuite.nachos.terminator.TextIterator
 

O

onChipClick(Chip, MotionEvent) - Method in interface com.hootsuite.nachos.NachoTextView.OnChipClickListener
Called when a chip in this TextView is touched.
onChipClicked(Chip) - Method in class com.hootsuite.nachos.NachoTextView
Implement this method to handle chip clicked events.
onChipRemove(Chip) - Method in interface com.hootsuite.nachos.NachoTextView.OnChipRemoveListener
Called when a chip in this TextView is removed
onItemClick(AdapterView<?>, View, int, long) - Method in class com.hootsuite.nachos.NachoTextView
 
onLayout(boolean, int, int, int, int) - Method in class com.hootsuite.nachos.NachoTextView
 
onMeasure(int, int) - Method in class com.hootsuite.nachos.NachoTextView
 
onTextChanged(CharSequence, int, int, int) - Method in class com.hootsuite.nachos.NachoTextView
 
onTextContextMenuItem(int) - Method in class com.hootsuite.nachos.NachoTextView
 
onTouchEvent(MotionEvent) - Method in class com.hootsuite.nachos.NachoTextView
 

P

PASTE_BEHAVIOR_USE_DEFAULT - Static variable in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
performValidation() - Method in class com.hootsuite.nachos.NachoTextView
If a Validator was set, this method will validate the entire text.

R

replace(int, int, CharSequence) - Method in class com.hootsuite.nachos.terminator.TextIterator
 
replaceText(CharSequence) - Method in class com.hootsuite.nachos.NachoTextView
If there is a ChipTokenizer set, this method will do nothing.
revertChipToToken(Chip, Editable) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
revertChipToToken(Chip, Editable) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Effectively does the opposite of ChipTokenizer.terminateToken(CharSequence, Object) by reverting the provided chip back into a token.
revertChipToToken(Chip, Editable) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 

S

setBackgroundColor(ColorStateList) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the background color.
setChipBackground(ColorStateList) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipBackgroundResource(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipCornerRadius(int) - Method in class com.hootsuite.nachos.NachoTextView
Sets the chip background corner radius.
setChipCornerRadiusResource(int) - Method in class com.hootsuite.nachos.NachoTextView
Sets the chip background corner radius.
setChipHeight(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the height of the chip.
setChipHeight(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipHorizontalSpacing(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipTerminatorHandler(ChipTerminatorHandler) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipTerminators(Map<Character, Integer>) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipTerminators(Map<Character, Integer>) - Method in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
Sets all the characters that will be marked as chip terminators.
setChipTerminators(Map<Character, Integer>) - Method in class com.hootsuite.nachos.terminator.DefaultChipTerminatorHandler
 
setChipTextColor(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipTextColorResource(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipTextSize(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setChipTokenizer(ChipTokenizer) - Method in class com.hootsuite.nachos.NachoTextView
Sets the ChipTokenizer to be used by this ChipSuggestionTextView.
setChipVerticalSpacing(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the vertical spacing to include in between chips.
setChipVerticalSpacing(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setCornerRadius(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the chip background corner radius.
setEditingChip(Chip, boolean) - Method in class com.hootsuite.nachos.NachoTextView
Puts the provided Chip in editing mode (i.e.
setIconBackgroundColor(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the icon background color.
setIllegalCharacterIdentifier(IllegalCharacterIdentifier) - Method in class com.hootsuite.nachos.NachoTextView
Sets the IllegalCharacterIdentifier that will identify characters that should not show up in the field when typed (i.e.
setLeftMargin(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the left margin.
setMaxAvailableWidth(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
 
setNachoValidator(NachoValidator) - Method in class com.hootsuite.nachos.NachoTextView
 
setOnChipClickListener(NachoTextView.OnChipClickListener) - Method in class com.hootsuite.nachos.NachoTextView
 
setOnChipRemoveListener(NachoTextView.OnChipRemoveListener) - Method in class com.hootsuite.nachos.NachoTextView
 
setPadding(int, int, int, int) - Method in class com.hootsuite.nachos.NachoTextView
Sets the padding on this View.
setPasteBehavior(int) - Method in class com.hootsuite.nachos.NachoTextView
 
setPasteBehavior(int) - Method in interface com.hootsuite.nachos.terminator.ChipTerminatorHandler
Customizes the way paste events are handled.
setPasteBehavior(int) - Method in class com.hootsuite.nachos.terminator.DefaultChipTerminatorHandler
 
setRightMargin(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the right margin.
setShowIconOnLeft(boolean) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets where the icon (if an icon was provided in the constructor) will appear.
setState(int[]) - Method in interface com.hootsuite.nachos.chip.Chip
Sets the UI state.
setState(int[]) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the UI state.
setText(List<String>) - Method in class com.hootsuite.nachos.NachoTextView
Sets the contents of this text view to contain the provided list of strings.
setTextColor(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the color for the chip's text.
setTextSize(int) - Method in class com.hootsuite.nachos.chip.ChipSpan
Sets the font size for the chip's text.
setTextWithChips(List<ChipInfo>) - Method in class com.hootsuite.nachos.NachoTextView
 
SpanChipTokenizer<C extends Chip> - Class in com.hootsuite.nachos.tokenizer
A default implementation of ChipTokenizer.
SpanChipTokenizer(Context, ChipCreator<C>, Class<C>) - Constructor for class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 

T

terminateAllTokens(Editable) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
terminateAllTokens(Editable) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Terminates (converts from token into chip) all unterminated tokens in the provided text.
terminateAllTokens(Editable) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
terminateToken(CharSequence, Object) - Method in class com.hootsuite.nachos.tokenizer.BaseChipTokenizer
 
terminateToken(CharSequence, Object) - Method in interface com.hootsuite.nachos.tokenizer.ChipTokenizer
Returns text, modified, if necessary, to ensure that it ends with a token terminator (for example a space or comma).
terminateToken(CharSequence, Object) - Method in class com.hootsuite.nachos.tokenizer.SpanChipTokenizer
 
TextIterator - Class in com.hootsuite.nachos.terminator
 
TextIterator(Editable, int, int) - Constructor for class com.hootsuite.nachos.terminator.TextIterator
 
toString() - Method in class com.hootsuite.nachos.chip.ChipSpan
 
toString() - Method in class com.hootsuite.nachos.NachoTextView
 
totalLength() - Method in class com.hootsuite.nachos.terminator.TextIterator
 

W

windowLength() - Method in class com.hootsuite.nachos.terminator.TextIterator
 
A B C D E F G H I N O P R S T W 
Skip navigation links