public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TextView.BufferType |
static interface |
TextView.OnEditorActionListener |
static class |
TextView.SavedState |
View.AccessibilityDelegate, View.BaseSavedState, View.DragShadowBuilder, View.MeasureSpec, View.OnAttachStateChangeListener, View.OnClickListener, View.OnCreateContextMenuListener, View.OnDragListener, View.OnFocusChangeListener, View.OnGenericMotionListener, View.OnHoverListener, View.OnKeyListener, View.OnLayoutChangeListener, View.OnLongClickListener, View.OnSystemUiVisibilityChangeListener, View.OnTouchListenerALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, 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, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, 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, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_RESOLVED_DEFAULT, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y| Constructor and Description |
|---|
TextView(Context context) |
TextView(Context context,
AttributeSet attrs) |
TextView(Context context,
AttributeSet attrs,
int defStyle) |
addChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeVerticalScrollOffset, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, findFocus, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceLayout, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBottom, getBottomFadingEdgeStrength, getCameraDistance, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTop, getTopFadingEdgeStrength, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasFocus, hasFocusable, hasOnClickListeners, hasTransientState, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onConfigurationChanged, onCreateContextMenu, onDisplayHint, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onHoverChanged, onHoverEvent, onKeyLongPress, onOverScrolled, onSetAlpha, onSizeChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLayerType, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDrawpublic TextView(Context context)
public TextView(Context context, AttributeSet attrs)
public TextView(Context context, AttributeSet attrs, int defStyle)
public void setEnabled(boolean enabled)
setEnabled in class Viewpublic void setTypeface(Typeface tf, int style)
protected boolean getDefaultEditable()
protected MovementMethod getDefaultMovementMethod()
public CharSequence getText()
public int length()
public Editable getEditableText()
public int getLineHeight()
public final Layout getLayout()
public final KeyListener getKeyListener()
public void setKeyListener(KeyListener input)
public final MovementMethod getMovementMethod()
public final void setMovementMethod(MovementMethod movement)
public final TransformationMethod getTransformationMethod()
public final void setTransformationMethod(TransformationMethod method)
public int getCompoundPaddingTop()
public int getCompoundPaddingBottom()
public int getCompoundPaddingLeft()
public int getCompoundPaddingRight()
public int getExtendedPaddingTop()
public int getExtendedPaddingBottom()
public int getTotalPaddingLeft()
public int getTotalPaddingRight()
public int getTotalPaddingTop()
public int getTotalPaddingBottom()
public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom)
public void setCompoundDrawablesWithIntrinsicBounds(int left,
int top,
int right,
int bottom)
public void setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable top, Drawable right, Drawable bottom)
public Drawable[] getCompoundDrawables()
public void setCompoundDrawablePadding(int pad)
public int getCompoundDrawablePadding()
public void setPadding(int left,
int top,
int right,
int bottom)
setPadding in class Viewpublic void setPaddingRelative(int start,
int top,
int end,
int bottom)
public final int getAutoLinkMask()
public void setTextAppearance(Context context, int resid)
public float getTextSize()
public void setTextSize(float size)
public void setTextSize(int unit,
float size)
public float getTextScaleX()
public void setTextScaleX(float size)
public void setTypeface(Typeface tf)
public Typeface getTypeface()
public void setTextColor(int color)
public void setTextColor(ColorStateList colors)
public final ColorStateList getTextColors()
public final int getCurrentTextColor()
public void setHighlightColor(int color)
public int getHighlightColor()
public void setShadowLayer(float radius,
float dx,
float dy,
int color)
public float getShadowRadius()
public float getShadowDx()
public float getShadowDy()
public int getShadowColor()
public TextPaint getPaint()
public final void setAutoLinkMask(int mask)
public final void setLinksClickable(boolean whether)
public final boolean getLinksClickable()
public URLSpan[] getUrls()
public final void setHintTextColor(int color)
public final void setHintTextColor(ColorStateList colors)
public final ColorStateList getHintTextColors()
public final int getCurrentHintTextColor()
public final void setLinkTextColor(int color)
public final void setLinkTextColor(ColorStateList colors)
public final ColorStateList getLinkTextColors()
public void setGravity(int gravity)
public int getGravity()
public int getPaintFlags()
public void setPaintFlags(int flags)
public void setHorizontallyScrolling(boolean whether)
public void setMinLines(int minlines)
public int getMinLines()
public void setMinHeight(int minHeight)
public int getMinHeight()
public void setMaxLines(int maxlines)
public int getMaxLines()
public void setMaxHeight(int maxHeight)
public int getMaxHeight()
public void setLines(int lines)
public void setHeight(int pixels)
public void setMinEms(int minems)
public int getMinEms()
public void setMinWidth(int minpixels)
public int getMinWidth()
public void setMaxEms(int maxems)
public int getMaxEms()
public void setMaxWidth(int maxpixels)
public int getMaxWidth()
public void setEms(int ems)
public void setWidth(int pixels)
public void setLineSpacing(float add,
float mult)
public float getLineSpacingMultiplier()
public float getLineSpacingExtra()
public final void append(CharSequence text)
public void append(CharSequence text, int start, int end)
protected void drawableStateChanged()
drawableStateChanged in class Viewpublic Parcelable onSaveInstanceState()
onSaveInstanceState in class Viewpublic void onRestoreInstanceState(Parcelable state)
onRestoreInstanceState in class Viewpublic void setFreezesText(boolean freezesText)
public boolean getFreezesText()
public final void setEditableFactory(Editable.Factory factory)
public final void setSpannableFactory(Spannable.Factory factory)
public final void setText(CharSequence text)
public final void setTextKeepState(CharSequence text)
public void setText(CharSequence text, TextView.BufferType type)
public final void setText(char[] text,
int start,
int len)
public final void setTextKeepState(CharSequence text, TextView.BufferType type)
public final void setText(int resid)
public final void setText(int resid,
TextView.BufferType type)
public final void setHint(CharSequence hint)
public final void setHint(int resid)
public CharSequence getHint()
public void setInputType(int type)
public void setRawInputType(int type)
public int getInputType()
public void setImeOptions(int imeOptions)
public int getImeOptions()
public void setImeActionLabel(CharSequence label, int actionId)
public CharSequence getImeActionLabel()
public int getImeActionId()
public void setOnEditorActionListener(TextView.OnEditorActionListener l)
public void onEditorAction(int actionCode)
public void setPrivateImeOptions(String type)
public String getPrivateImeOptions()
public void setInputExtras(int xmlResId)
throws org.xmlpull.v1.XmlPullParserException,
IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic Bundle getInputExtras(boolean create)
public CharSequence getError()
public void setError(CharSequence error)
public void setError(CharSequence error, Drawable icon)
protected boolean setFrame(int l,
int t,
int r,
int b)
public void setFilters(InputFilter[] filters)
public InputFilter[] getFilters()
public boolean onPreDraw()
onPreDraw in interface ViewTreeObserver.OnPreDrawListenerprotected void onAttachedToWindow()
onAttachedToWindow in class Viewprotected void onDetachedFromWindow()
onDetachedFromWindow in class Viewpublic void onScreenStateChanged(int screenState)
onScreenStateChanged in class Viewprotected boolean isPaddingOffsetRequired()
isPaddingOffsetRequired in class Viewprotected int getLeftPaddingOffset()
getLeftPaddingOffset in class Viewprotected int getTopPaddingOffset()
getTopPaddingOffset in class Viewprotected int getBottomPaddingOffset()
getBottomPaddingOffset in class Viewprotected int getRightPaddingOffset()
getRightPaddingOffset in class Viewprotected boolean verifyDrawable(Drawable who)
verifyDrawable in class Viewpublic void jumpDrawablesToCurrentState()
jumpDrawablesToCurrentState in class Viewpublic void invalidateDrawable(Drawable drawable)
invalidateDrawable in interface Drawable.CallbackinvalidateDrawable in class Viewpublic boolean hasOverlappingRendering()
hasOverlappingRendering in class Viewpublic boolean isTextSelectable()
public void setTextIsSelectable(boolean selectable)
protected int[] onCreateDrawableState(int extraSpace)
onCreateDrawableState in class Viewpublic void getFocusedRect(Rect r)
getFocusedRect in class Viewpublic int getLineCount()
public int getLineBounds(int line,
Rect bounds)
public int getBaseline()
getBaseline in class Viewpublic boolean onKeyPreIme(int keyCode,
KeyEvent event)
onKeyPreIme in class Viewpublic boolean onKeyDown(int keyCode,
KeyEvent event)
onKeyDown in interface KeyEvent.CallbackonKeyDown in class Viewpublic boolean onKeyMultiple(int keyCode,
int repeatCount,
KeyEvent event)
onKeyMultiple in interface KeyEvent.CallbackonKeyMultiple in class Viewpublic boolean onKeyUp(int keyCode,
KeyEvent event)
onKeyUp in interface KeyEvent.CallbackonKeyUp in class Viewpublic boolean onCheckIsTextEditor()
onCheckIsTextEditor in class Viewpublic InputConnection onCreateInputConnection(EditorInfo outAttrs)
onCreateInputConnection in class Viewpublic boolean extractText(ExtractedTextRequest request, ExtractedText outText)
public void setExtractedText(ExtractedText text)
public void onCommitCompletion(CompletionInfo text)
public void onCommitCorrection(CorrectionInfo info)
public void beginBatchEdit()
public void endBatchEdit()
public void onBeginBatchEdit()
public void onEndBatchEdit()
public void setIncludeFontPadding(boolean includepad)
public boolean getIncludeFontPadding()
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
protected void onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
public boolean bringPointIntoView(int offset)
public boolean moveCursorToVisibleOffset()
public void computeScroll()
computeScroll in class Viewpublic void debug(int depth)
public int getSelectionStart()
public int getSelectionEnd()
public boolean hasSelection()
public void setSingleLine()
public void setAllCaps(boolean allCaps)
public void setSingleLine(boolean singleLine)
public void setEllipsize(TextUtils.TruncateAt where)
public void setMarqueeRepeatLimit(int marqueeLimit)
public int getMarqueeRepeatLimit()
public TextUtils.TruncateAt getEllipsize()
public void setSelectAllOnFocus(boolean selectAllOnFocus)
public void setCursorVisible(boolean visible)
public boolean isCursorVisible()
protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter)
protected void onSelectionChanged(int selStart,
int selEnd)
public void addTextChangedListener(TextWatcher watcher)
public void removeTextChangedListener(TextWatcher watcher)
public void onStartTemporaryDetach()
onStartTemporaryDetach in class Viewpublic void onFinishTemporaryDetach()
onFinishTemporaryDetach in class Viewprotected void onFocusChanged(boolean focused,
int direction,
Rect previouslyFocusedRect)
onFocusChanged in class Viewpublic void onWindowFocusChanged(boolean hasWindowFocus)
onWindowFocusChanged in class Viewprotected void onVisibilityChanged(View changedView, int visibility)
onVisibilityChanged in class Viewpublic void clearComposingText()
public void setSelected(boolean selected)
setSelected in class Viewpublic boolean onTouchEvent(MotionEvent event)
onTouchEvent in class Viewpublic boolean onGenericMotionEvent(MotionEvent event)
onGenericMotionEvent in class Viewpublic boolean didTouchFocusSelect()
public void cancelLongPress()
cancelLongPress in class Viewpublic boolean onTrackballEvent(MotionEvent event)
onTrackballEvent in class Viewpublic void setScroller(Scroller s)
protected float getLeftFadingEdgeStrength()
getLeftFadingEdgeStrength in class Viewprotected float getRightFadingEdgeStrength()
getRightFadingEdgeStrength in class Viewprotected int computeHorizontalScrollRange()
computeHorizontalScrollRange in class Viewprotected int computeVerticalScrollRange()
computeVerticalScrollRange in class Viewprotected int computeVerticalScrollExtent()
computeVerticalScrollExtent in class Viewpublic void findViewsWithText(ArrayList<View> outViews, CharSequence searched, int flags)
findViewsWithText in class Viewpublic static ColorStateList getTextColors(Context context, TypedArray attrs)
public static int getTextColor(Context context, TypedArray attrs, int def)
public boolean onKeyShortcut(int keyCode,
KeyEvent event)
onKeyShortcut in class Viewpublic void onPopulateAccessibilityEvent(AccessibilityEvent event)
onPopulateAccessibilityEvent in class Viewpublic void onInitializeAccessibilityEvent(AccessibilityEvent event)
onInitializeAccessibilityEvent in class Viewpublic void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info)
onInitializeAccessibilityNodeInfo in class Viewpublic void sendAccessibilityEvent(int eventType)
sendAccessibilityEvent in interface AccessibilityEventSourcesendAccessibilityEvent in class Viewpublic boolean isInputMethodTarget()
public boolean onTextContextMenuItem(int id)
public boolean performLongClick()
performLongClick in class Viewprotected void onScrollChanged(int horiz,
int vert,
int oldHoriz,
int oldVert)
onScrollChanged in class Viewpublic boolean isSuggestionsEnabled()
public void setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback)
public ActionMode.Callback getCustomSelectionActionModeCallback()
public int getOffsetForPosition(float x,
float y)
public boolean onDragEvent(DragEvent event)
onDragEvent in class Viewprotected void resolveDrawables()
protected void resetResolvedDrawables()
Copyright © 2008-2013. All Rights Reserved.