public class RadAutoCompleteTextView extends RadScrollView implements ViewTreeObserver.OnGlobalLayoutListener
FrameLayout.LayoutParams
ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener
View.AccessibilityDelegate, View.BaseSavedState, View.DragShadowBuilder, View.MeasureSpec, View.OnApplyWindowInsetsListener, View.OnAttachStateChangeListener, View.OnClickListener, View.OnContextClickListener, View.OnCreateContextMenuListener, View.OnDragListener, View.OnFocusChangeListener, View.OnGenericMotionListener, View.OnHoverListener, View.OnKeyListener, View.OnLayoutChangeListener, View.OnLongClickListener, View.OnScrollChangeListener, View.OnSystemUiVisibilityChangeListener, View.OnTouchListener
SCROLLING_MODE_BOTH, SCROLLING_MODE_HORIZONTAL, SCROLLING_MODE_NONE, SCROLLING_MODE_VERTICAL
FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description |
---|
RadAutoCompleteTextView(Context context) |
RadAutoCompleteTextView(Context context,
AttributeSet attr) |
Modifier and Type | Method and Description |
---|---|
void |
addDidAutoCompleteListener(DidAutoCompleteListener listener)
Adds a new listener that is called when an item from the suggestion view is selected.
|
void |
addFocusables(ArrayList<View> views,
int direction,
int focusableMode) |
void |
addItemFromTokenModel(TokenModel completion)
Adds an item to the @
RadAutoCompleteTextView from a @TokenModel . |
void |
addShowSuggestionListListener(ShowSuggestionListListener listener)
Adds a new listener that is called when the suggestion list is shown.
|
void |
addToken(TokenView token)
Add token at the end of the token list.
|
void |
addTokenAddedListener(TokenAddedListener listener)
Adds a new listener that is called when a new token is added.
|
void |
addTokenDeselectedListener(TokenDeselectedListener listener)
Adds a new listener that is called when a token is deselected.
|
void |
addTokenRemovedListener(TokenRemovedListener listener)
Adds a new listener that is called when a token is removed.
|
void |
addTokenSelectedListener(TokenSelectedListener listener)
Adds a new listener that is called when a token is selected.
|
AutoCompleteAdapter |
getAdapter()
Return the adapter used to filter suggestions.
|
boolean |
getAllowCustomTokens()
Returns boolean defining whether tokens that are not presented in the suggestions are allowed.
|
boolean |
getAllowTokenizingWitgSymbol() |
int |
getAppendTextColor()
Return append text color.
|
String |
getAutocompleteHint()
Returns current autocomplete hint, displayed when no text is typed in the text field.
|
View |
getCloseButtonView()
Returns close button view, which clears the text in the autocomplete when clicked.
|
DisplayMode |
getDisplayMode()
Returns current display mode
|
int |
getMaximumTokensCount()
Returns maximum allowed token count.
|
int |
getMaximumWrapViewHeight()
Return current maximum allowed height to which wrap view can expand.
|
int |
getMinimumCharactersToSearch()
Returns minimum count of characters which invoke filtering and suggesting.
|
PopupWindow |
getPopUp()
Returns pop up view used to display suggestions.
|
ProgressBar |
getProgressBar()
Returns the progress bar shown when remote data is being loaded.
|
RadListView |
getSuggestionView()
Returns suggestion view used to display suggestions.
|
boolean |
getSuggestionViewAlwaysVisible()
Returns whether suggestion view should be always visible.
|
int |
getSuggestionViewHeight()
Returns current suggestion view height.
|
SuggestMode |
getSuggestMode()
Returns current suggest mode.
|
CharSequence |
getText()
Gets the text that
RadAutoCompleteTextView currently displays. |
EditText |
getTextField()
Returns the EditText used by the RadAutoCompleteTextView
|
TokenAdapter |
getTokenAdapter() |
TokenView |
getTokenAt(int index)
Returns token at specific position.
|
List<TokenView> |
getTokens()
Returns list of all tokens.
|
LayoutMode |
getTokensLayoutMode()
Returns current token loyout mode.
|
boolean |
getUsingAsyncData()
Returns boolean value indicating whether the autocomplete is populated async.
|
void |
insertTokenAt(int index,
TokenView token)
Adds token at specific position.
|
boolean |
isShowCloseButton() |
void |
onGlobalLayout() |
void |
removeAllTokens()
Removes all tokens.
|
void |
removeDidAutoCompleteListener(DidAutoCompleteListener listener)
Adds a new listener that is called when an item from the suggestion view is selected.
|
void |
removeShowSuggestionListListener(ShowSuggestionListListener listener)
Removes a listener that is called when thr suggestion list is shown.
|
void |
removeToken(TokenView token)
Removes specific token.
|
void |
removeTokenAddedListener(TokenAddedListener listener)
Removes a listener that is called when a new token is added.
|
void |
removeTokenAt(int index)
Removes token at specific index.
|
void |
removeTokenDeselectedListener(TokenDeselectedListener listener)
Removes a listener that is called when a token is deselected.
|
void |
removeTokenRemovedListener(TokenRemovedListener listener)
Removes a listener that is called when a token is removed.
|
void |
removeTokenSelectedListener(TokenSelectedListener listener)
Removes a listener that is called when a token is selected.
|
void |
resetAutocomplete()
Resets autocomplete.
|
void |
resolveAfterFilter(String cs,
boolean isRemoteResultLoaded) |
void |
setAdapter(AutoCompleteAdapter adapter)
Sets the adapter used to filter suggestions.
|
void |
setAllowCustomTokens(boolean allowCustomTokens)
Sets whether tokens that are not presented in the suggestions are allowed.
|
void |
setAllowTokenizingWithSymbol(boolean allowed) |
void |
setAppendTextColor(int color)
Sets append text color.
|
void |
setAutocompleteHint(String hint)
Sets current autocomplete hint, displayed when no text is typed in the text field.
|
void |
setAutocompleteIcon(Drawable icon) |
void |
setCloseButtonView(View closeView)
Sets close button view, which clears the text in the autocomplete when clicked.
|
void |
setDisplayMode(DisplayMode mode)
Sets current display mode.
|
void |
setMaximumTokensCount(int count)
Sets maximum allowed token count.
|
void |
setMaximumWrapViewHeight(int height)
Sets current maximum allowed height to which wrap view can expand.
|
void |
setMinimumCharactersToSearch(int numberOfCharacters)
Sets minimum count of characters which invoke filtering and suggesting.
|
void |
setPadding(int left,
int top,
int right,
int bottom) |
void |
setProgressBar(ProgressBar value)
Sets the progress bar shown when remote data is being loaded.
|
void |
setReadOnly(boolean isReadOnly)
Makes the RadAutoCompleteTextView enabled or disabled.
|
void |
setShowCloseButton(boolean showCloseButton) |
void |
setSuggestionViewAlwaysVisible(boolean alwaysVisible)
Sets whether suggestion view should be always visible.
|
void |
setSuggestionViewHeight(int height)
Sets current suggestion view height.
|
void |
setSuggestMode(SuggestMode mode)
Sets current suggest mode.
|
void |
setText(CharSequence text)
Sets the text that
RadAutoCompleteTextView is to display. |
void |
setTokenAdapter(TokenAdapter tokenAdapter) |
void |
setTokensLayoutMode(LayoutMode mode)
Sets current layout mode.
|
void |
setUsingAsyncData(boolean value)
Sets whether the autocomplete is populated async.
|
addView, addView, addView, addView, arrowScroll, computeScroll, dispatchKeyEvent, draw, executeKeyEvent, fling, fullScroll, getMaxHorizontalScrollAmount, getMaxVerticalScrollAmount, getScrollMode, isFillViewport, isSmoothScrollingEnabled, onGenericMotionEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onInterceptTouchEvent, onTouchEvent, pageScroll, performAccessibilityAction, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestLayout, scrollTo, setFillViewport, setOverScrollMode, setScrollMode, setSmoothScrollingEnabled, shouldDelayChildPressedState, smoothScrollBy, smoothScrollTo
generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, setForegroundGravity, setMeasureAllChildren
addChildrenForAccessibility, addStatesFromChildren, addTouchables, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchSetActivated, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onInterceptHoverEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, drawableHotspotChanged, findViewById, findViewWithTag, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onHoverChanged, onHoverEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTrackballEvent, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows
public RadAutoCompleteTextView(Context context)
public RadAutoCompleteTextView(Context context, AttributeSet attr)
public void setText(CharSequence text)
RadAutoCompleteTextView
is to display.
Note: Using this method to set the text does not trigger the filtering mechanism.text
- a CharSequence
implementation representing the text to set.public CharSequence getText()
RadAutoCompleteTextView
currently displays.public ProgressBar getProgressBar()
public void setProgressBar(ProgressBar value)
value
- progress bar instances to be setpublic boolean getUsingAsyncData()
public void setUsingAsyncData(boolean value)
public boolean getAllowTokenizingWitgSymbol()
public void setAllowTokenizingWithSymbol(boolean allowed)
public boolean isShowCloseButton()
public void setShowCloseButton(boolean showCloseButton)
public View getCloseButtonView()
public void setCloseButtonView(View closeView)
public boolean getAllowCustomTokens()
public void setAllowCustomTokens(boolean allowCustomTokens)
public boolean getSuggestionViewAlwaysVisible()
public void setSuggestionViewAlwaysVisible(boolean alwaysVisible)
public int getSuggestionViewHeight()
public void setSuggestionViewHeight(int height)
public int getMaximumWrapViewHeight()
public void setMaximumWrapViewHeight(int height)
public int getAppendTextColor()
public void setAppendTextColor(int color)
public int getMinimumCharactersToSearch()
public void setMinimumCharactersToSearch(int numberOfCharacters)
public int getMaximumTokensCount()
public void setMaximumTokensCount(int count)
public String getAutocompleteHint()
public void setAutocompleteHint(String hint)
public EditText getTextField()
public void setReadOnly(boolean isReadOnly)
public RadListView getSuggestionView()
public AutoCompleteAdapter getAdapter()
public void setAdapter(AutoCompleteAdapter adapter)
adapter
- Adapter object.public DisplayMode getDisplayMode()
public void setDisplayMode(DisplayMode mode)
mode
- DisplayModepublic LayoutMode getTokensLayoutMode()
public void setTokensLayoutMode(LayoutMode mode)
mode
- LayoutModepublic SuggestMode getSuggestMode()
public void setSuggestMode(SuggestMode mode)
mode
- SuggestModepublic PopupWindow getPopUp()
public void addTokenAddedListener(TokenAddedListener listener)
listener
- the listener to be added.public void removeTokenAddedListener(TokenAddedListener listener)
listener
- the listener to remove.public void addTokenRemovedListener(TokenRemovedListener listener)
listener
- listener to be added.public void removeTokenRemovedListener(TokenRemovedListener listener)
listener
- listener to be removed.public void addTokenSelectedListener(TokenSelectedListener listener)
listener
- the listener to be added.public void removeTokenSelectedListener(TokenSelectedListener listener)
listener
- the listener to remove.public void addTokenDeselectedListener(TokenDeselectedListener listener)
listener
- the listener to be added.public void removeTokenDeselectedListener(TokenDeselectedListener listener)
listener
- the listener to remove.public void addShowSuggestionListListener(ShowSuggestionListListener listener)
listener
- listener to be added.public void removeShowSuggestionListListener(ShowSuggestionListListener listener)
listener
- listener to be removed.public void addDidAutoCompleteListener(DidAutoCompleteListener listener)
listener
- listener to be added.public void removeDidAutoCompleteListener(DidAutoCompleteListener listener)
listener
- listener to be removed.public void setAutocompleteIcon(Drawable icon)
public void resetAutocomplete()
public void removeAllTokens()
public void removeTokenAt(int index)
public void removeToken(TokenView token)
token
- Token to be removed.public TokenView getTokenAt(int index)
public void insertTokenAt(int index, TokenView token)
public void addToken(TokenView token)
token
- Token to be added.public void addFocusables(ArrayList<View> views, int direction, int focusableMode)
addFocusables
in class ViewGroup
public TokenAdapter getTokenAdapter()
public void setTokenAdapter(TokenAdapter tokenAdapter)
public void resolveAfterFilter(String cs, boolean isRemoteResultLoaded)
public void addItemFromTokenModel(TokenModel completion)
RadAutoCompleteTextView
from a @TokenModel
.public void setPadding(int left, int top, int right, int bottom)
setPadding
in class View
public void onGlobalLayout()
onGlobalLayout
in interface ViewTreeObserver.OnGlobalLayoutListener