Methods
| Modifier and Type |
Method and Description |
void |
addChildrenForAccessibility(ArrayList<View> children) |
void |
addFocusables(ArrayList<View> views,
int direction) |
void |
addFocusables(ArrayList<View> views,
int direction,
int focusableMode) |
void |
addOnAttachStateChangeListener(View.OnAttachStateChangeListener listener) |
void |
addOnLayoutChangeListener(View.OnLayoutChangeListener listener) |
void |
addTouchables(ArrayList<View> views) |
ViewPropertyAnimator |
animate() |
void |
announceForAccessibility(CharSequence text) |
protected boolean |
awakenScrollBars() |
protected boolean |
awakenScrollBars(int startDelay) |
protected boolean |
awakenScrollBars(int startDelay,
boolean invalidate) |
void |
bringToFront() |
void |
buildDrawingCache() |
void |
buildDrawingCache(boolean autoScale) |
void |
buildLayer() |
boolean |
callOnClick() |
void |
cancelLongPress() |
boolean |
canScrollHorizontally(int direction) |
boolean |
canScrollVertically(int direction) |
boolean |
checkInputConnectionProxy(View view) |
void |
clearAnimation() |
void |
clearFocus() |
static int |
combineMeasuredStates(int curState,
int newState) |
protected int |
computeHorizontalScrollExtent() |
protected int |
computeHorizontalScrollOffset() |
protected int |
computeHorizontalScrollRange() |
void |
computeScroll() |
protected int |
computeVerticalScrollExtent() |
protected int |
computeVerticalScrollOffset() |
protected int |
computeVerticalScrollRange() |
AccessibilityNodeInfo |
createAccessibilityNodeInfo() |
void |
createContextMenu(ContextMenu menu) |
void |
destroyDrawingCache() |
void |
dispatchConfigurationChanged(Configuration newConfig) |
void |
dispatchDisplayHint(int hint) |
boolean |
dispatchDragEvent(DragEvent event) |
protected void |
dispatchDraw(Canvas canvas) |
protected boolean |
dispatchGenericFocusedEvent(MotionEvent event) |
boolean |
dispatchGenericMotionEvent(MotionEvent event) |
protected boolean |
dispatchGenericPointerEvent(MotionEvent event) |
protected boolean |
dispatchHoverEvent(MotionEvent event) |
boolean |
dispatchKeyEvent(KeyEvent event) |
boolean |
dispatchKeyEventPreIme(KeyEvent event) |
boolean |
dispatchKeyShortcutEvent(KeyEvent event) |
boolean |
dispatchPopulateAccessibilityEvent(AccessibilityEvent event) |
protected void |
dispatchRestoreInstanceState(SparseArray<Parcelable> container) |
protected void |
dispatchSaveInstanceState(SparseArray<Parcelable> container) |
protected void |
dispatchSetActivated(boolean activated) |
protected void |
dispatchSetPressed(boolean pressed) |
protected void |
dispatchSetSelected(boolean selected) |
void |
dispatchSystemUiVisibilityChanged(int visibility) |
boolean |
dispatchTouchEvent(MotionEvent event) |
boolean |
dispatchTrackballEvent(MotionEvent event) |
boolean |
dispatchUnhandledMove(View focused,
int direction) |
protected void |
dispatchVisibilityChanged(View changedView,
int visibility) |
void |
dispatchWindowFocusChanged(boolean hasFocus) |
void |
dispatchWindowSystemUiVisiblityChanged(int visible) |
void |
dispatchWindowVisibilityChanged(int visibility) |
void |
draw(Canvas canvas) |
protected void |
drawableStateChanged() |
View |
findFocus() |
View |
findViewById(int id) |
void |
findViewsWithText(ArrayList<View> outViews,
CharSequence searched,
int flags) |
View |
findViewWithTag(Object tag) |
protected boolean |
fitSystemWindows(Rect insets) |
View |
focusSearch(int direction) |
void |
forceLayout() |
AccessibilityNodeProvider |
getAccessibilityNodeProvider() |
float |
getAlpha() |
Animation |
getAnimation() |
IBinder |
getApplicationWindowToken() |
Drawable |
getBackground() |
int |
getBaseline() |
int |
getBottom() |
protected float |
getBottomFadingEdgeStrength() |
protected int |
getBottomPaddingOffset() |
float |
getCameraDistance() |
CharSequence |
getContentDescription() |
Context |
getContext() |
protected ContextMenu.ContextMenuInfo |
getContextMenuInfo() |
static int |
getDefaultSize(int size,
int measureSpec) |
int[] |
getDrawableState() |
Bitmap |
getDrawingCache() |
Bitmap |
getDrawingCache(boolean autoScale) |
int |
getDrawingCacheBackgroundColor() |
int |
getDrawingCacheQuality() |
void |
getDrawingRect(Rect outRect) |
long |
getDrawingTime() |
boolean |
getFilterTouchesWhenObscured() |
boolean |
getFitsSystemWindows() |
ArrayList<View> |
getFocusables(int direction) |
void |
getFocusedRect(Rect r) |
boolean |
getGlobalVisibleRect(Rect r) |
boolean |
getGlobalVisibleRect(Rect r,
Point globalOffset) |
Handler |
getHandler() |
int |
getHeight() |
void |
getHitRect(Rect outRect) |
int |
getHorizontalFadingEdgeLength() |
protected int |
getHorizontalScrollbarHeight() |
int |
getId() |
int |
getImportantForAccessibility() |
boolean |
getKeepScreenOn() |
KeyEvent.DispatcherState |
getKeyDispatcherState() |
int |
getLayerType() |
ViewGroup.LayoutParams |
getLayoutParams() |
int |
getLeft() |
protected float |
getLeftFadingEdgeStrength() |
protected int |
getLeftPaddingOffset() |
boolean |
getLocalVisibleRect(Rect r) |
void |
getLocationInWindow(int[] location) |
void |
getLocationOnScreen(int[] location) |
Matrix |
getMatrix() |
int |
getMeasuredHeight() |
int |
getMeasuredHeightAndState() |
int |
getMeasuredState() |
int |
getMeasuredWidth() |
int |
getMeasuredWidthAndState() |
int |
getMinimumHeight() |
int |
getMinimumWidth() |
int |
getNextFocusDownId() |
int |
getNextFocusForwardId() |
int |
getNextFocusLeftId() |
int |
getNextFocusRightId() |
int |
getNextFocusUpId() |
View.OnFocusChangeListener |
getOnFocusChangeListener() |
int |
getOverScrollMode() |
int |
getPaddingBottom() |
int |
getPaddingLeft() |
int |
getPaddingRight() |
int |
getPaddingTop() |
ViewParent |
getParent() |
ViewParent |
getParentForAccessibility() |
float |
getPivotX() |
float |
getPivotY() |
Resources |
getResources() |
int |
getRight() |
protected float |
getRightFadingEdgeStrength() |
protected int |
getRightPaddingOffset() |
View |
getRootView() |
float |
getRotation() |
float |
getRotationX() |
float |
getRotationY() |
float |
getScaleX() |
float |
getScaleY() |
int |
getScrollBarDefaultDelayBeforeFade() |
int |
getScrollBarFadeDuration() |
int |
getScrollBarSize() |
int |
getScrollBarStyle() |
int |
getScrollX() |
int |
getScrollY() |
int |
getSolidColor() |
protected int |
getSuggestedMinimumHeight() |
protected int |
getSuggestedMinimumWidth() |
int |
getSystemUiVisibility() |
Object |
getTag() |
Object |
getTag(int key) |
int |
getTop() |
protected float |
getTopFadingEdgeStrength() |
protected int |
getTopPaddingOffset() |
ArrayList<View> |
getTouchables() |
TouchDelegate |
getTouchDelegate() |
float |
getTranslationX() |
float |
getTranslationY() |
int |
getVerticalFadingEdgeLength() |
int |
getVerticalScrollbarPosition() |
int |
getVerticalScrollbarWidth() |
ViewTreeObserver |
getViewTreeObserver() |
int |
getVisibility() |
int |
getWidth() |
protected int |
getWindowAttachCount() |
int |
getWindowSystemUiVisibility() |
IBinder |
getWindowToken() |
int |
getWindowVisibility() |
void |
getWindowVisibleDisplayFrame(Rect outRect) |
float |
getX() |
float |
getY() |
boolean |
hasFocus() |
boolean |
hasFocusable() |
boolean |
hasOnClickListeners() |
boolean |
hasOverlappingRendering() |
boolean |
hasTransientState() |
boolean |
hasWindowFocus() |
static View |
inflate(Context context,
int resource,
ViewGroup root) |
protected void |
initializeFadingEdge(TypedArray a) |
protected void |
initializeScrollbars(TypedArray a) |
void |
invalidate() |
void |
invalidate(int l,
int t,
int r,
int b) |
void |
invalidate(Rect dirty) |
void |
invalidateDrawable(Drawable drawable) |
boolean |
isActivated() |
boolean |
isClickable() |
boolean |
isDirty() |
boolean |
isDrawingCacheEnabled() |
boolean |
isDuplicateParentStateEnabled() |
boolean |
isEnabled() |
boolean |
isFocusable() |
boolean |
isFocusableInTouchMode() |
boolean |
isFocused() |
boolean |
isHapticFeedbackEnabled() |
boolean |
isHardwareAccelerated() |
boolean |
isHorizontalFadingEdgeEnabled() |
boolean |
isHorizontalScrollBarEnabled() |
boolean |
isHovered() |
boolean |
isInEditMode() |
boolean |
isInTouchMode() |
boolean |
isLayoutRequested() |
boolean |
isLongClickable() |
boolean |
isOpaque() |
protected boolean |
isPaddingOffsetRequired() |
boolean |
isPressed() |
boolean |
isSaveEnabled() |
boolean |
isSaveFromParentEnabled() |
boolean |
isScrollbarFadingEnabled() |
boolean |
isScrollContainer() |
boolean |
isSelected() |
boolean |
isShown() |
boolean |
isSoundEffectsEnabled() |
boolean |
isVerticalFadingEdgeEnabled() |
boolean |
isVerticalScrollBarEnabled() |
void |
jumpDrawablesToCurrentState() |
void |
layout(int l,
int t,
int r,
int b) |
void |
measure(int widthMeasureSpec,
int heightMeasureSpec) |
protected static int[] |
mergeDrawableStates(int[] baseState,
int[] additionalState) |
void |
offsetLeftAndRight(int offset) |
void |
offsetTopAndBottom(int offset) |
protected void |
onAnimationEnd() |
protected void |
onAnimationStart() |
protected void |
onAttachedToWindow() |
boolean |
onCheckIsTextEditor() |
protected void |
onConfigurationChanged(Configuration newConfig) |
protected void |
onCreateContextMenu(ContextMenu menu) |
protected int[] |
onCreateDrawableState(int extraSpace) |
InputConnection |
onCreateInputConnection(EditorInfo outAttrs) |
protected void |
onDetachedFromWindow() |
protected void |
onDisplayHint(int hint) |
boolean |
onDragEvent(DragEvent event) |
protected void |
onDraw(Canvas canvas) |
protected void |
onDrawScrollBars(Canvas canvas) |
boolean |
onFilterTouchEventForSecurity(MotionEvent event) |
protected void |
onFinishInflate() |
void |
onFinishTemporaryDetach() |
protected void |
onFocusChanged(boolean gainFocus,
int direction,
Rect previouslyFocusedRect) |
boolean |
onGenericMotionEvent(MotionEvent event) |
void |
onHoverChanged(boolean hovered) |
boolean |
onHoverEvent(MotionEvent event) |
void |
onInitializeAccessibilityEvent(AccessibilityEvent event) |
void |
onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) |
boolean |
onKeyDown(int keyCode,
KeyEvent event) |
boolean |
onKeyLongPress(int keyCode,
KeyEvent event) |
boolean |
onKeyMultiple(int keyCode,
int repeatCount,
KeyEvent event) |
boolean |
onKeyPreIme(int keyCode,
KeyEvent event) |
boolean |
onKeyShortcut(int keyCode,
KeyEvent event) |
boolean |
onKeyUp(int keyCode,
KeyEvent event) |
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY) |
void |
onPopulateAccessibilityEvent(AccessibilityEvent event) |
protected void |
onRestoreInstanceState(Parcelable state) |
protected Parcelable |
onSaveInstanceState() |
void |
onScreenStateChanged(int screenState) |
protected void |
onScrollChanged(int l,
int t,
int oldl,
int oldt) |
protected boolean |
onSetAlpha(int alpha) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
onStartTemporaryDetach() |
boolean |
onTouchEvent(MotionEvent event) |
boolean |
onTrackballEvent(MotionEvent event) |
protected void |
onVisibilityChanged(View changedView,
int visibility) |
void |
onWindowFocusChanged(boolean hasWindowFocus) |
void |
onWindowSystemUiVisibilityChanged(int visible) |
protected void |
onWindowVisibilityChanged(int visibility) |
protected boolean |
overScrollBy(int deltaX,
int deltaY,
int scrollX,
int scrollY,
int scrollRangeX,
int scrollRangeY,
int maxOverScrollX,
int maxOverScrollY,
boolean isTouchEvent) |
boolean |
performAccessibilityAction(int action,
Bundle arguments) |
boolean |
performClick() |
boolean |
performHapticFeedback(int feedbackConstant) |
boolean |
performHapticFeedback(int feedbackConstant,
int flags) |
boolean |
performLongClick() |
void |
playSoundEffect(int soundConstant) |
boolean |
post(Runnable action) |
boolean |
postDelayed(Runnable action,
long delayMillis) |
void |
postInvalidate() |
void |
postInvalidate(int left,
int top,
int right,
int bottom) |
void |
postInvalidateDelayed(long delayMilliseconds) |
void |
postInvalidateDelayed(long delayMilliseconds,
int left,
int top,
int right,
int bottom) |
void |
postInvalidateOnAnimation() |
void |
postInvalidateOnAnimation(int left,
int top,
int right,
int bottom) |
void |
postOnAnimation(Runnable action) |
void |
postOnAnimationDelayed(Runnable action,
long delayMillis) |
void |
refreshDrawableState() |
boolean |
removeCallbacks(Runnable action) |
void |
removeOnAttachStateChangeListener(View.OnAttachStateChangeListener listener) |
void |
removeOnLayoutChangeListener(View.OnLayoutChangeListener listener) |
void |
requestFitSystemWindows() |
boolean |
requestFocus() |
boolean |
requestFocus(int direction) |
boolean |
requestFocus(int direction,
Rect previouslyFocusedRect) |
boolean |
requestFocusFromTouch() |
void |
requestLayout() |
boolean |
requestRectangleOnScreen(Rect rectangle) |
boolean |
requestRectangleOnScreen(Rect rectangle,
boolean immediate) |
static int |
resolveSize(int size,
int measureSpec) |
static int |
resolveSizeAndState(int size,
int measureSpec,
int childMeasuredState) |
void |
restoreHierarchyState(SparseArray<Parcelable> container) |
void |
saveHierarchyState(SparseArray<Parcelable> container) |
void |
scheduleDrawable(Drawable who,
Runnable what,
long when) |
void |
scrollBy(int x,
int y) |
void |
scrollTo(int x,
int y) |
void |
sendAccessibilityEvent(int eventType) |
void |
sendAccessibilityEventUnchecked(AccessibilityEvent event) |
void |
setAccessibilityDelegate(View.AccessibilityDelegate delegate) |
void |
setActivated(boolean activated) |
void |
setAlpha(float alpha) |
void |
setAnimation(Animation animation) |
void |
setBackground(Drawable background) |
void |
setBackgroundColor(int color) |
void |
setBackgroundDrawable(Drawable background)
Deprecated.
|
void |
setBackgroundResource(int resid) |
void |
setBottom(int bottom) |
void |
setCameraDistance(float distance) |
void |
setClickable(boolean clickable) |
void |
setContentDescription(CharSequence contentDescription) |
void |
setDrawingCacheBackgroundColor(int color) |
void |
setDrawingCacheEnabled(boolean enabled) |
void |
setDrawingCacheQuality(int quality) |
void |
setDuplicateParentStateEnabled(boolean enabled) |
void |
setEnabled(boolean enabled) |
void |
setFadingEdgeLength(int length) |
void |
setFilterTouchesWhenObscured(boolean enabled) |
void |
setFitsSystemWindows(boolean fitSystemWindows) |
void |
setFocusable(boolean focusable) |
void |
setFocusableInTouchMode(boolean focusableInTouchMode) |
void |
setHapticFeedbackEnabled(boolean hapticFeedbackEnabled) |
void |
setHasTransientState(boolean hasTransientState) |
void |
setHorizontalFadingEdgeEnabled(boolean horizontalFadingEdgeEnabled) |
void |
setHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled) |
void |
setHovered(boolean hovered) |
void |
setId(int id) |
void |
setImportantForAccessibility(int mode) |
void |
setKeepScreenOn(boolean keepScreenOn) |
void |
setLayerType(int layerType,
Paint paint) |
void |
setLayoutParams(ViewGroup.LayoutParams params) |
void |
setLeft(int left) |
void |
setLongClickable(boolean longClickable) |
protected void |
setMeasuredDimension(int measuredWidth,
int measuredHeight) |
void |
setMinimumHeight(int minHeight) |
void |
setMinimumWidth(int minWidth) |
void |
setNextFocusDownId(int nextFocusDownId) |
void |
setNextFocusForwardId(int nextFocusForwardId) |
void |
setNextFocusLeftId(int nextFocusLeftId) |
void |
setNextFocusRightId(int nextFocusRightId) |
void |
setNextFocusUpId(int nextFocusUpId) |
void |
setOnClickListener(View.OnClickListener l) |
void |
setOnCreateContextMenuListener(View.OnCreateContextMenuListener l) |
void |
setOnDragListener(View.OnDragListener l) |
void |
setOnFocusChangeListener(View.OnFocusChangeListener l) |
void |
setOnGenericMotionListener(View.OnGenericMotionListener l) |
void |
setOnHoverListener(View.OnHoverListener l) |
void |
setOnKeyListener(View.OnKeyListener l) |
void |
setOnLongClickListener(View.OnLongClickListener l) |
void |
setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener l) |
void |
setOnTouchListener(View.OnTouchListener l) |
void |
setOverScrollMode(int overScrollMode) |
void |
setPadding(int left,
int top,
int right,
int bottom) |
void |
setPivotX(float pivotX) |
void |
setPivotY(float pivotY) |
void |
setPressed(boolean pressed) |
void |
setRight(int right) |
void |
setRotation(float rotation) |
void |
setRotationX(float rotationX) |
void |
setRotationY(float rotationY) |
void |
setSaveEnabled(boolean enabled) |
void |
setSaveFromParentEnabled(boolean enabled) |
void |
setScaleX(float scaleX) |
void |
setScaleY(float scaleY) |
void |
setScrollBarDefaultDelayBeforeFade(int scrollBarDefaultDelayBeforeFade) |
void |
setScrollBarFadeDuration(int scrollBarFadeDuration) |
void |
setScrollbarFadingEnabled(boolean fadeScrollbars) |
void |
setScrollBarSize(int scrollBarSize) |
void |
setScrollBarStyle(int style) |
void |
setScrollContainer(boolean isScrollContainer) |
void |
setScrollX(int value) |
void |
setScrollY(int value) |
void |
setSelected(boolean selected) |
void |
setSoundEffectsEnabled(boolean soundEffectsEnabled) |
void |
setSystemUiVisibility(int visibility) |
void |
setTag(int key,
Object tag) |
void |
setTag(Object tag) |
void |
setTop(int top) |
void |
setTouchDelegate(TouchDelegate delegate) |
void |
setTranslationX(float translationX) |
void |
setTranslationY(float translationY) |
void |
setVerticalFadingEdgeEnabled(boolean verticalFadingEdgeEnabled) |
void |
setVerticalScrollBarEnabled(boolean verticalScrollBarEnabled) |
void |
setVerticalScrollbarPosition(int position) |
void |
setVisibility(int visibility) |
void |
setWillNotCacheDrawing(boolean willNotCacheDrawing) |
void |
setWillNotDraw(boolean willNotDraw) |
void |
setX(float x) |
void |
setY(float y) |
boolean |
showContextMenu() |
ActionMode |
startActionMode(ActionMode.Callback callback) |
void |
startAnimation(Animation animation) |
boolean |
startDrag(ClipData data,
View.DragShadowBuilder shadowBuilder,
Object myLocalState,
int flags) |
void |
unscheduleDrawable(Drawable who) |
void |
unscheduleDrawable(Drawable who,
Runnable what) |
protected boolean |
verifyDrawable(Drawable who) |
boolean |
willNotCacheDrawing() |
boolean |
willNotDraw() |