android.view
Class View

java.lang.Object
  extended by android.view.View
All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback
Direct Known Subclasses:
AnalogClock, ImageView, KeyboardView, ProgressBar, Space, SurfaceView, TextureView, TextView, ViewGroup, ViewStub

public class View
extends Object
implements Drawable.Callback, KeyEvent.Callback, AccessibilityEventSource


Nested Class Summary
static class View.AccessibilityDelegate
           
static class View.BaseSavedState
           
static class View.DragShadowBuilder
           
static class View.MeasureSpec
           
static interface View.OnAttachStateChangeListener
           
static interface View.OnClickListener
           
static interface View.OnCreateContextMenuListener
           
static interface View.OnDragListener
           
static interface View.OnFocusChangeListener
           
static interface View.OnGenericMotionListener
           
static interface View.OnHoverListener
           
static interface View.OnKeyListener
           
static interface View.OnLayoutChangeListener
           
static interface View.OnLongClickListener
           
static interface View.OnSystemUiVisibilityChangeListener
           
static interface View.OnTouchListener
           
 
Field Summary
static Property<View,Float> ALPHA
           
static int DRAWING_CACHE_QUALITY_AUTO
           
static int DRAWING_CACHE_QUALITY_HIGH
           
static int DRAWING_CACHE_QUALITY_LOW
           
protected static int[] EMPTY_STATE_SET
           
protected static int[] ENABLED_FOCUSED_SELECTED_STATE_SET
           
protected static int[] ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] ENABLED_FOCUSED_STATE_SET
           
protected static int[] ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] ENABLED_SELECTED_STATE_SET
           
protected static int[] ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] ENABLED_STATE_SET
           
protected static int[] ENABLED_WINDOW_FOCUSED_STATE_SET
           
static int FIND_VIEWS_WITH_CONTENT_DESCRIPTION
           
static int FIND_VIEWS_WITH_TEXT
           
static int FOCUS_BACKWARD
           
static int FOCUS_DOWN
           
static int FOCUS_FORWARD
           
static int FOCUS_LEFT
           
static int FOCUS_RIGHT
           
static int FOCUS_UP
           
static int FOCUSABLES_ALL
           
static int FOCUSABLES_TOUCH_MODE
           
protected static int[] FOCUSED_SELECTED_STATE_SET
           
protected static int[] FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] FOCUSED_STATE_SET
           
protected static int[] FOCUSED_WINDOW_FOCUSED_STATE_SET
           
static int GONE
           
static int HAPTIC_FEEDBACK_ENABLED
           
static int INVISIBLE
           
static int KEEP_SCREEN_ON
           
static int LAYER_TYPE_HARDWARE
           
static int LAYER_TYPE_NONE
           
static int LAYER_TYPE_SOFTWARE
           
static int MEASURED_HEIGHT_STATE_SHIFT
           
static int MEASURED_SIZE_MASK
           
static int MEASURED_STATE_MASK
           
static int MEASURED_STATE_TOO_SMALL
           
static int NO_ID
           
static int OVER_SCROLL_ALWAYS
           
static int OVER_SCROLL_IF_CONTENT_SCROLLS
           
static int OVER_SCROLL_NEVER
           
protected static int[] PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET
           
protected static int[] PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] PRESSED_ENABLED_FOCUSED_STATE_SET
           
protected static int[] PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] PRESSED_ENABLED_SELECTED_STATE_SET
           
protected static int[] PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] PRESSED_ENABLED_STATE_SET
           
protected static int[] PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] PRESSED_FOCUSED_SELECTED_STATE_SET
           
protected static int[] PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] PRESSED_FOCUSED_STATE_SET
           
protected static int[] PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] PRESSED_SELECTED_STATE_SET
           
protected static int[] PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET
           
protected static int[] PRESSED_WINDOW_FOCUSED_STATE_SET
           
static Property<View,Float> ROTATION
           
static Property<View,Float> ROTATION_X
           
static Property<View,Float> ROTATION_Y
           
static Property<View,Float> SCALE_X
           
static Property<View,Float> SCALE_Y
           
static int SCROLLBAR_POSITION_DEFAULT
           
static int SCROLLBAR_POSITION_LEFT
           
static int SCROLLBAR_POSITION_RIGHT
           
static int SCROLLBARS_INSIDE_INSET
           
static int SCROLLBARS_INSIDE_OVERLAY
           
static int SCROLLBARS_OUTSIDE_INSET
           
static int SCROLLBARS_OUTSIDE_OVERLAY
           
protected static int[] SELECTED_STATE_SET
           
protected static int[] SELECTED_WINDOW_FOCUSED_STATE_SET
           
static int SOUND_EFFECTS_ENABLED
           
static int STATUS_BAR_HIDDEN
           
static int STATUS_BAR_VISIBLE
           
static int SYSTEM_UI_FLAG_HIDE_NAVIGATION
           
static int SYSTEM_UI_FLAG_LOW_PROFILE
           
static int SYSTEM_UI_FLAG_VISIBLE
           
static Property<View,Float> TRANSLATION_X
           
static Property<View,Float> TRANSLATION_Y
           
protected static String VIEW_LOG_TAG
           
static int VISIBLE
           
protected static int[] WINDOW_FOCUSED_STATE_SET
           
static Property<View,Float> X
           
static Property<View,Float> Y
           
 
Constructor Summary
View(Context context)
           
View(Context context, AttributeSet attrs)
           
View(Context context, AttributeSet attrs, int defStyle)
           
 
Method Summary
 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()
           
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()
           
 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 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)
           
 boolean fitsSystemWindows()
           
protected  boolean fitSystemWindows(Rect insets)
           
 View focusSearch(int direction)
           
 void forceLayout()
           
 float getAlpha()
           
 Animation getAnimation()
           
 IBinder getApplicationWindowToken()
           
 Drawable getBackground()
           
 int getBaseline()
           
 int getBottom()
           
protected  float getBottomFadingEdgeStrength()
           
protected  int getBottomPaddingOffset()
           
 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()
           
 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()
           
 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 getNextFocusDownId()
           
 int getNextFocusForwardId()
           
 int getNextFocusLeftId()
           
 int getNextFocusRightId()
           
 int getNextFocusUpId()
           
 View.OnFocusChangeListener getOnFocusChangeListener()
           
 int getOverScrollMode()
           
 int getPaddingBottom()
           
 int getPaddingLeft()
           
 int getPaddingRight()
           
 int getPaddingTop()
           
 ViewParent getParent()
           
 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 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()
           
 IBinder getWindowToken()
           
 int getWindowVisibility()
           
 void getWindowVisibleDisplayFrame(Rect outRect)
           
 float getX()
           
 float getY()
           
 boolean hasFocus()
           
 boolean hasFocusable()
           
 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 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()
           
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)
           
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 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 refreshDrawableState()
           
 boolean removeCallbacks(Runnable action)
           
 void removeOnAttachStateChangeListener(View.OnAttachStateChangeListener listener)
           
 void removeOnLayoutChangeListener(View.OnLayoutChangeListener listener)
           
 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 setBackgroundColor(int color)
           
 void setBackgroundDrawable(Drawable d)
           
 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 setHorizontalFadingEdgeEnabled(boolean horizontalFadingEdgeEnabled)
           
 void setHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled)
           
 void setHovered(boolean hovered)
           
 void setId(int id)
           
 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 setScrollbarFadingEnabled(boolean fadeScrollbars)
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_LOG_TAG

protected static final String VIEW_LOG_TAG
See Also:
Constant Field Values

NO_ID

public static final int NO_ID
See Also:
Constant Field Values

VISIBLE

public static final int VISIBLE
See Also:
Constant Field Values

INVISIBLE

public static final int INVISIBLE
See Also:
Constant Field Values

GONE

public static final int GONE
See Also:
Constant Field Values

DRAWING_CACHE_QUALITY_LOW

public static final int DRAWING_CACHE_QUALITY_LOW
See Also:
Constant Field Values

DRAWING_CACHE_QUALITY_HIGH

public static final int DRAWING_CACHE_QUALITY_HIGH
See Also:
Constant Field Values

DRAWING_CACHE_QUALITY_AUTO

public static final int DRAWING_CACHE_QUALITY_AUTO
See Also:
Constant Field Values

SCROLLBARS_INSIDE_OVERLAY

public static final int SCROLLBARS_INSIDE_OVERLAY
See Also:
Constant Field Values

SCROLLBARS_INSIDE_INSET

public static final int SCROLLBARS_INSIDE_INSET
See Also:
Constant Field Values

SCROLLBARS_OUTSIDE_OVERLAY

public static final int SCROLLBARS_OUTSIDE_OVERLAY
See Also:
Constant Field Values

SCROLLBARS_OUTSIDE_INSET

public static final int SCROLLBARS_OUTSIDE_INSET
See Also:
Constant Field Values

KEEP_SCREEN_ON

public static final int KEEP_SCREEN_ON
See Also:
Constant Field Values

SOUND_EFFECTS_ENABLED

public static final int SOUND_EFFECTS_ENABLED
See Also:
Constant Field Values

HAPTIC_FEEDBACK_ENABLED

public static final int HAPTIC_FEEDBACK_ENABLED
See Also:
Constant Field Values

FOCUSABLES_ALL

public static final int FOCUSABLES_ALL
See Also:
Constant Field Values

FOCUSABLES_TOUCH_MODE

public static final int FOCUSABLES_TOUCH_MODE
See Also:
Constant Field Values

FOCUS_BACKWARD

public static final int FOCUS_BACKWARD
See Also:
Constant Field Values

FOCUS_FORWARD

public static final int FOCUS_FORWARD
See Also:
Constant Field Values

FOCUS_LEFT

public static final int FOCUS_LEFT
See Also:
Constant Field Values

FOCUS_UP

public static final int FOCUS_UP
See Also:
Constant Field Values

FOCUS_RIGHT

public static final int FOCUS_RIGHT
See Also:
Constant Field Values

FOCUS_DOWN

public static final int FOCUS_DOWN
See Also:
Constant Field Values

MEASURED_SIZE_MASK

public static final int MEASURED_SIZE_MASK
See Also:
Constant Field Values

MEASURED_STATE_MASK

public static final int MEASURED_STATE_MASK
See Also:
Constant Field Values

MEASURED_HEIGHT_STATE_SHIFT

public static final int MEASURED_HEIGHT_STATE_SHIFT
See Also:
Constant Field Values

MEASURED_STATE_TOO_SMALL

public static final int MEASURED_STATE_TOO_SMALL
See Also:
Constant Field Values

EMPTY_STATE_SET

protected static final int[] EMPTY_STATE_SET

ENABLED_STATE_SET

protected static final int[] ENABLED_STATE_SET

FOCUSED_STATE_SET

protected static final int[] FOCUSED_STATE_SET

SELECTED_STATE_SET

protected static final int[] SELECTED_STATE_SET

WINDOW_FOCUSED_STATE_SET

protected static final int[] WINDOW_FOCUSED_STATE_SET

ENABLED_FOCUSED_STATE_SET

protected static final int[] ENABLED_FOCUSED_STATE_SET

ENABLED_SELECTED_STATE_SET

protected static final int[] ENABLED_SELECTED_STATE_SET

ENABLED_WINDOW_FOCUSED_STATE_SET

protected static final int[] ENABLED_WINDOW_FOCUSED_STATE_SET

FOCUSED_SELECTED_STATE_SET

protected static final int[] FOCUSED_SELECTED_STATE_SET

FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] FOCUSED_WINDOW_FOCUSED_STATE_SET

SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] SELECTED_WINDOW_FOCUSED_STATE_SET

ENABLED_FOCUSED_SELECTED_STATE_SET

protected static final int[] ENABLED_FOCUSED_SELECTED_STATE_SET

ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET

ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET

FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

PRESSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_WINDOW_FOCUSED_STATE_SET

PRESSED_SELECTED_STATE_SET

protected static final int[] PRESSED_SELECTED_STATE_SET

PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET

PRESSED_FOCUSED_STATE_SET

protected static final int[] PRESSED_FOCUSED_STATE_SET

PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET

PRESSED_FOCUSED_SELECTED_STATE_SET

protected static final int[] PRESSED_FOCUSED_SELECTED_STATE_SET

PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

PRESSED_ENABLED_STATE_SET

protected static final int[] PRESSED_ENABLED_STATE_SET

PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET

PRESSED_ENABLED_SELECTED_STATE_SET

protected static final int[] PRESSED_ENABLED_SELECTED_STATE_SET

PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET

PRESSED_ENABLED_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_STATE_SET

PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET

PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET

PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

OVER_SCROLL_ALWAYS

public static final int OVER_SCROLL_ALWAYS
See Also:
Constant Field Values

OVER_SCROLL_IF_CONTENT_SCROLLS

public static final int OVER_SCROLL_IF_CONTENT_SCROLLS
See Also:
Constant Field Values

OVER_SCROLL_NEVER

public static final int OVER_SCROLL_NEVER
See Also:
Constant Field Values

SYSTEM_UI_FLAG_VISIBLE

public static final int SYSTEM_UI_FLAG_VISIBLE
See Also:
Constant Field Values

SYSTEM_UI_FLAG_LOW_PROFILE

public static final int SYSTEM_UI_FLAG_LOW_PROFILE
See Also:
Constant Field Values

SYSTEM_UI_FLAG_HIDE_NAVIGATION

public static final int SYSTEM_UI_FLAG_HIDE_NAVIGATION
See Also:
Constant Field Values

STATUS_BAR_HIDDEN

public static final int STATUS_BAR_HIDDEN
See Also:
Constant Field Values

STATUS_BAR_VISIBLE

public static final int STATUS_BAR_VISIBLE
See Also:
Constant Field Values

FIND_VIEWS_WITH_TEXT

public static final int FIND_VIEWS_WITH_TEXT
See Also:
Constant Field Values

FIND_VIEWS_WITH_CONTENT_DESCRIPTION

public static final int FIND_VIEWS_WITH_CONTENT_DESCRIPTION
See Also:
Constant Field Values

SCROLLBAR_POSITION_DEFAULT

public static final int SCROLLBAR_POSITION_DEFAULT
See Also:
Constant Field Values

SCROLLBAR_POSITION_LEFT

public static final int SCROLLBAR_POSITION_LEFT
See Also:
Constant Field Values

SCROLLBAR_POSITION_RIGHT

public static final int SCROLLBAR_POSITION_RIGHT
See Also:
Constant Field Values

LAYER_TYPE_NONE

public static final int LAYER_TYPE_NONE
See Also:
Constant Field Values

LAYER_TYPE_SOFTWARE

public static final int LAYER_TYPE_SOFTWARE
See Also:
Constant Field Values

LAYER_TYPE_HARDWARE

public static final int LAYER_TYPE_HARDWARE
See Also:
Constant Field Values

ALPHA

public static Property<View,Float> ALPHA

TRANSLATION_X

public static Property<View,Float> TRANSLATION_X

TRANSLATION_Y

public static Property<View,Float> TRANSLATION_Y

X

public static Property<View,Float> X

Y

public static Property<View,Float> Y

ROTATION

public static Property<View,Float> ROTATION

ROTATION_X

public static Property<View,Float> ROTATION_X

ROTATION_Y

public static Property<View,Float> ROTATION_Y

SCALE_X

public static Property<View,Float> SCALE_X

SCALE_Y

public static Property<View,Float> SCALE_Y
Constructor Detail

View

public View(Context context)

View

public View(Context context,
            AttributeSet attrs)

View

public View(Context context,
            AttributeSet attrs,
            int defStyle)
Method Detail

initializeFadingEdge

protected void initializeFadingEdge(TypedArray a)

getVerticalFadingEdgeLength

public int getVerticalFadingEdgeLength()

setFadingEdgeLength

public void setFadingEdgeLength(int length)

getHorizontalFadingEdgeLength

public int getHorizontalFadingEdgeLength()

getVerticalScrollbarWidth

public int getVerticalScrollbarWidth()

getHorizontalScrollbarHeight

protected int getHorizontalScrollbarHeight()

initializeScrollbars

protected void initializeScrollbars(TypedArray a)

setVerticalScrollbarPosition

public void setVerticalScrollbarPosition(int position)

getVerticalScrollbarPosition

public int getVerticalScrollbarPosition()

setOnFocusChangeListener

public void setOnFocusChangeListener(View.OnFocusChangeListener l)

addOnLayoutChangeListener

public void addOnLayoutChangeListener(View.OnLayoutChangeListener listener)

removeOnLayoutChangeListener

public void removeOnLayoutChangeListener(View.OnLayoutChangeListener listener)

addOnAttachStateChangeListener

public void addOnAttachStateChangeListener(View.OnAttachStateChangeListener listener)

removeOnAttachStateChangeListener

public void removeOnAttachStateChangeListener(View.OnAttachStateChangeListener listener)

getOnFocusChangeListener

public View.OnFocusChangeListener getOnFocusChangeListener()

setOnClickListener

public void setOnClickListener(View.OnClickListener l)

setOnLongClickListener

public void setOnLongClickListener(View.OnLongClickListener l)

setOnCreateContextMenuListener

public void setOnCreateContextMenuListener(View.OnCreateContextMenuListener l)

performClick

public boolean performClick()

performLongClick

public boolean performLongClick()

showContextMenu

public boolean showContextMenu()

startActionMode

public ActionMode startActionMode(ActionMode.Callback callback)

setOnKeyListener

public void setOnKeyListener(View.OnKeyListener l)

setOnTouchListener

public void setOnTouchListener(View.OnTouchListener l)

setOnGenericMotionListener

public void setOnGenericMotionListener(View.OnGenericMotionListener l)

setOnHoverListener

public void setOnHoverListener(View.OnHoverListener l)

setOnDragListener

public void setOnDragListener(View.OnDragListener l)

requestRectangleOnScreen

public boolean requestRectangleOnScreen(Rect rectangle)

requestRectangleOnScreen

public boolean requestRectangleOnScreen(Rect rectangle,
                                        boolean immediate)

clearFocus

public void clearFocus()

hasFocus

public boolean hasFocus()

hasFocusable

public boolean hasFocusable()

onFocusChanged

protected void onFocusChanged(boolean gainFocus,
                              int direction,
                              Rect previouslyFocusedRect)

sendAccessibilityEvent

public void sendAccessibilityEvent(int eventType)
Specified by:
sendAccessibilityEvent in interface AccessibilityEventSource

sendAccessibilityEventUnchecked

public void sendAccessibilityEventUnchecked(AccessibilityEvent event)
Specified by:
sendAccessibilityEventUnchecked in interface AccessibilityEventSource

dispatchPopulateAccessibilityEvent

public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)

onPopulateAccessibilityEvent

public void onPopulateAccessibilityEvent(AccessibilityEvent event)

onInitializeAccessibilityEvent

public void onInitializeAccessibilityEvent(AccessibilityEvent event)

createAccessibilityNodeInfo

public AccessibilityNodeInfo createAccessibilityNodeInfo()

onInitializeAccessibilityNodeInfo

public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info)

setAccessibilityDelegate

public void setAccessibilityDelegate(View.AccessibilityDelegate delegate)

getContentDescription

public CharSequence getContentDescription()

setContentDescription

public void setContentDescription(CharSequence contentDescription)

isFocused

public boolean isFocused()

findFocus

public View findFocus()

setScrollContainer

public void setScrollContainer(boolean isScrollContainer)

getDrawingCacheQuality

public int getDrawingCacheQuality()

setDrawingCacheQuality

public void setDrawingCacheQuality(int quality)

getKeepScreenOn

public boolean getKeepScreenOn()

setKeepScreenOn

public void setKeepScreenOn(boolean keepScreenOn)

getNextFocusLeftId

public int getNextFocusLeftId()

setNextFocusLeftId

public void setNextFocusLeftId(int nextFocusLeftId)

getNextFocusRightId

public int getNextFocusRightId()

setNextFocusRightId

public void setNextFocusRightId(int nextFocusRightId)

getNextFocusUpId

public int getNextFocusUpId()

setNextFocusUpId

public void setNextFocusUpId(int nextFocusUpId)

getNextFocusDownId

public int getNextFocusDownId()

setNextFocusDownId

public void setNextFocusDownId(int nextFocusDownId)

getNextFocusForwardId

public int getNextFocusForwardId()

setNextFocusForwardId

public void setNextFocusForwardId(int nextFocusForwardId)

isShown

public boolean isShown()

fitSystemWindows

protected boolean fitSystemWindows(Rect insets)

setFitsSystemWindows

public void setFitsSystemWindows(boolean fitSystemWindows)

fitsSystemWindows

public boolean fitsSystemWindows()

getVisibility

public int getVisibility()

setVisibility

public void setVisibility(int visibility)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

setFocusable

public void setFocusable(boolean focusable)

setFocusableInTouchMode

public void setFocusableInTouchMode(boolean focusableInTouchMode)

setSoundEffectsEnabled

public void setSoundEffectsEnabled(boolean soundEffectsEnabled)

isSoundEffectsEnabled

public boolean isSoundEffectsEnabled()

setHapticFeedbackEnabled

public void setHapticFeedbackEnabled(boolean hapticFeedbackEnabled)

isHapticFeedbackEnabled

public boolean isHapticFeedbackEnabled()

setWillNotDraw

public void setWillNotDraw(boolean willNotDraw)

willNotDraw

public boolean willNotDraw()

setWillNotCacheDrawing

public void setWillNotCacheDrawing(boolean willNotCacheDrawing)

willNotCacheDrawing

public boolean willNotCacheDrawing()

isClickable

public boolean isClickable()

setClickable

public void setClickable(boolean clickable)

isLongClickable

public boolean isLongClickable()

setLongClickable

public void setLongClickable(boolean longClickable)

setPressed

public void setPressed(boolean pressed)

dispatchSetPressed

protected void dispatchSetPressed(boolean pressed)

isPressed

public boolean isPressed()

isSaveEnabled

public boolean isSaveEnabled()

setSaveEnabled

public void setSaveEnabled(boolean enabled)

getFilterTouchesWhenObscured

public boolean getFilterTouchesWhenObscured()

setFilterTouchesWhenObscured

public void setFilterTouchesWhenObscured(boolean enabled)

isSaveFromParentEnabled

public boolean isSaveFromParentEnabled()

setSaveFromParentEnabled

public void setSaveFromParentEnabled(boolean enabled)

isFocusable

public final boolean isFocusable()

isFocusableInTouchMode

public final boolean isFocusableInTouchMode()

focusSearch

public View focusSearch(int direction)

dispatchUnhandledMove

public boolean dispatchUnhandledMove(View focused,
                                     int direction)

getFocusables

public ArrayList<View> getFocusables(int direction)

addFocusables

public void addFocusables(ArrayList<View> views,
                          int direction)

addFocusables

public void addFocusables(ArrayList<View> views,
                          int direction,
                          int focusableMode)

findViewsWithText

public void findViewsWithText(ArrayList<View> outViews,
                              CharSequence searched,
                              int flags)

getTouchables

public ArrayList<View> getTouchables()

addTouchables

public void addTouchables(ArrayList<View> views)

requestFocus

public final boolean requestFocus()

requestFocus

public final boolean requestFocus(int direction)

requestFocus

public boolean requestFocus(int direction,
                            Rect previouslyFocusedRect)

requestFocusFromTouch

public final boolean requestFocusFromTouch()

onStartTemporaryDetach

public void onStartTemporaryDetach()

onFinishTemporaryDetach

public void onFinishTemporaryDetach()

getKeyDispatcherState

public KeyEvent.DispatcherState getKeyDispatcherState()

dispatchKeyEventPreIme

public boolean dispatchKeyEventPreIme(KeyEvent event)

dispatchKeyEvent

public boolean dispatchKeyEvent(KeyEvent event)

dispatchKeyShortcutEvent

public boolean dispatchKeyShortcutEvent(KeyEvent event)

dispatchTouchEvent

public boolean dispatchTouchEvent(MotionEvent event)

onFilterTouchEventForSecurity

public boolean onFilterTouchEventForSecurity(MotionEvent event)

dispatchTrackballEvent

public boolean dispatchTrackballEvent(MotionEvent event)

dispatchGenericMotionEvent

public boolean dispatchGenericMotionEvent(MotionEvent event)

dispatchHoverEvent

protected boolean dispatchHoverEvent(MotionEvent event)

dispatchGenericPointerEvent

protected boolean dispatchGenericPointerEvent(MotionEvent event)

dispatchGenericFocusedEvent

protected boolean dispatchGenericFocusedEvent(MotionEvent event)

dispatchWindowFocusChanged

public void dispatchWindowFocusChanged(boolean hasFocus)

onWindowFocusChanged

public void onWindowFocusChanged(boolean hasWindowFocus)

hasWindowFocus

public boolean hasWindowFocus()

dispatchVisibilityChanged

protected void dispatchVisibilityChanged(View changedView,
                                         int visibility)

onVisibilityChanged

protected void onVisibilityChanged(View changedView,
                                   int visibility)

dispatchDisplayHint

public void dispatchDisplayHint(int hint)

onDisplayHint

protected void onDisplayHint(int hint)

dispatchWindowVisibilityChanged

public void dispatchWindowVisibilityChanged(int visibility)

onWindowVisibilityChanged

protected void onWindowVisibilityChanged(int visibility)

getWindowVisibility

public int getWindowVisibility()

getWindowVisibleDisplayFrame

public void getWindowVisibleDisplayFrame(Rect outRect)

dispatchConfigurationChanged

public void dispatchConfigurationChanged(Configuration newConfig)

onConfigurationChanged

protected void onConfigurationChanged(Configuration newConfig)

isInTouchMode

public boolean isInTouchMode()

getContext

public final Context getContext()

onKeyPreIme

public boolean onKeyPreIme(int keyCode,
                           KeyEvent event)

onKeyDown

public boolean onKeyDown(int keyCode,
                         KeyEvent event)
Specified by:
onKeyDown in interface KeyEvent.Callback

onKeyLongPress

public boolean onKeyLongPress(int keyCode,
                              KeyEvent event)
Specified by:
onKeyLongPress in interface KeyEvent.Callback

onKeyUp

public boolean onKeyUp(int keyCode,
                       KeyEvent event)
Specified by:
onKeyUp in interface KeyEvent.Callback

onKeyMultiple

public boolean onKeyMultiple(int keyCode,
                             int repeatCount,
                             KeyEvent event)
Specified by:
onKeyMultiple in interface KeyEvent.Callback

onKeyShortcut

public boolean onKeyShortcut(int keyCode,
                             KeyEvent event)

onCheckIsTextEditor

public boolean onCheckIsTextEditor()

onCreateInputConnection

public InputConnection onCreateInputConnection(EditorInfo outAttrs)

checkInputConnectionProxy

public boolean checkInputConnectionProxy(View view)

createContextMenu

public void createContextMenu(ContextMenu menu)

getContextMenuInfo

protected ContextMenu.ContextMenuInfo getContextMenuInfo()

onCreateContextMenu

protected void onCreateContextMenu(ContextMenu menu)

onTrackballEvent

public boolean onTrackballEvent(MotionEvent event)

onGenericMotionEvent

public boolean onGenericMotionEvent(MotionEvent event)

onHoverEvent

public boolean onHoverEvent(MotionEvent event)

isHovered

public boolean isHovered()

setHovered

public void setHovered(boolean hovered)

onHoverChanged

public void onHoverChanged(boolean hovered)

onTouchEvent

public boolean onTouchEvent(MotionEvent event)

cancelLongPress

public void cancelLongPress()

setTouchDelegate

public void setTouchDelegate(TouchDelegate delegate)

getTouchDelegate

public TouchDelegate getTouchDelegate()

bringToFront

public void bringToFront()

onScrollChanged

protected void onScrollChanged(int l,
                               int t,
                               int oldl,
                               int oldt)

onSizeChanged

protected void onSizeChanged(int w,
                             int h,
                             int oldw,
                             int oldh)

dispatchDraw

protected void dispatchDraw(Canvas canvas)

getParent

public final ViewParent getParent()

setScrollX

public void setScrollX(int value)

setScrollY

public void setScrollY(int value)

getScrollX

public final int getScrollX()

getScrollY

public final int getScrollY()

getWidth

public final int getWidth()

getHeight

public final int getHeight()

getDrawingRect

public void getDrawingRect(Rect outRect)

getMeasuredWidth

public final int getMeasuredWidth()

getMeasuredWidthAndState

public final int getMeasuredWidthAndState()

getMeasuredHeight

public final int getMeasuredHeight()

getMeasuredHeightAndState

public final int getMeasuredHeightAndState()

getMeasuredState

public final int getMeasuredState()

getMatrix

public Matrix getMatrix()

setCameraDistance

public void setCameraDistance(float distance)

getRotation

public float getRotation()

setRotation

public void setRotation(float rotation)

getRotationY

public float getRotationY()

setRotationY

public void setRotationY(float rotationY)

getRotationX

public float getRotationX()

setRotationX

public void setRotationX(float rotationX)

getScaleX

public float getScaleX()

setScaleX

public void setScaleX(float scaleX)

getScaleY

public float getScaleY()

setScaleY

public void setScaleY(float scaleY)

getPivotX

public float getPivotX()

setPivotX

public void setPivotX(float pivotX)

getPivotY

public float getPivotY()

setPivotY

public void setPivotY(float pivotY)

getAlpha

public float getAlpha()

setAlpha

public void setAlpha(float alpha)

getTop

public final int getTop()

setTop

public final void setTop(int top)

getBottom

public final int getBottom()

isDirty

public boolean isDirty()

setBottom

public final void setBottom(int bottom)

getLeft

public final int getLeft()

setLeft

public final void setLeft(int left)

getRight

public final int getRight()

setRight

public final void setRight(int right)

getX

public float getX()

setX

public void setX(float x)

getY

public float getY()

setY

public void setY(float y)

getTranslationX

public float getTranslationX()

setTranslationX

public void setTranslationX(float translationX)

getTranslationY

public float getTranslationY()

setTranslationY

public void setTranslationY(float translationY)

getHitRect

public void getHitRect(Rect outRect)

getFocusedRect

public void getFocusedRect(Rect r)

getGlobalVisibleRect

public boolean getGlobalVisibleRect(Rect r,
                                    Point globalOffset)

getGlobalVisibleRect

public final boolean getGlobalVisibleRect(Rect r)

getLocalVisibleRect

public final boolean getLocalVisibleRect(Rect r)

offsetTopAndBottom

public void offsetTopAndBottom(int offset)

offsetLeftAndRight

public void offsetLeftAndRight(int offset)

getLayoutParams

public ViewGroup.LayoutParams getLayoutParams()

setLayoutParams

public void setLayoutParams(ViewGroup.LayoutParams params)

scrollTo

public void scrollTo(int x,
                     int y)

scrollBy

public void scrollBy(int x,
                     int y)

awakenScrollBars

protected boolean awakenScrollBars()

awakenScrollBars

protected boolean awakenScrollBars(int startDelay)

awakenScrollBars

protected boolean awakenScrollBars(int startDelay,
                                   boolean invalidate)

invalidate

public void invalidate(Rect dirty)

invalidate

public void invalidate(int l,
                       int t,
                       int r,
                       int b)

invalidate

public void invalidate()

isOpaque

public boolean isOpaque()

getHandler

public Handler getHandler()

post

public boolean post(Runnable action)

postDelayed

public boolean postDelayed(Runnable action,
                           long delayMillis)

removeCallbacks

public boolean removeCallbacks(Runnable action)

postInvalidate

public void postInvalidate()

postInvalidate

public void postInvalidate(int left,
                           int top,
                           int right,
                           int bottom)

postInvalidateDelayed

public void postInvalidateDelayed(long delayMilliseconds)

postInvalidateDelayed

public void postInvalidateDelayed(long delayMilliseconds,
                                  int left,
                                  int top,
                                  int right,
                                  int bottom)

computeScroll

public void computeScroll()

isHorizontalFadingEdgeEnabled

public boolean isHorizontalFadingEdgeEnabled()

setHorizontalFadingEdgeEnabled

public void setHorizontalFadingEdgeEnabled(boolean horizontalFadingEdgeEnabled)

isVerticalFadingEdgeEnabled

public boolean isVerticalFadingEdgeEnabled()

setVerticalFadingEdgeEnabled

public void setVerticalFadingEdgeEnabled(boolean verticalFadingEdgeEnabled)

getTopFadingEdgeStrength

protected float getTopFadingEdgeStrength()

getBottomFadingEdgeStrength

protected float getBottomFadingEdgeStrength()

getLeftFadingEdgeStrength

protected float getLeftFadingEdgeStrength()

getRightFadingEdgeStrength

protected float getRightFadingEdgeStrength()

isHorizontalScrollBarEnabled

public boolean isHorizontalScrollBarEnabled()

setHorizontalScrollBarEnabled

public void setHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled)

isVerticalScrollBarEnabled

public boolean isVerticalScrollBarEnabled()

setVerticalScrollBarEnabled

public void setVerticalScrollBarEnabled(boolean verticalScrollBarEnabled)

setScrollbarFadingEnabled

public void setScrollbarFadingEnabled(boolean fadeScrollbars)

isScrollbarFadingEnabled

public boolean isScrollbarFadingEnabled()

setScrollBarStyle

public void setScrollBarStyle(int style)

getScrollBarStyle

public int getScrollBarStyle()

computeHorizontalScrollRange

protected int computeHorizontalScrollRange()

computeHorizontalScrollOffset

protected int computeHorizontalScrollOffset()

computeHorizontalScrollExtent

protected int computeHorizontalScrollExtent()

computeVerticalScrollRange

protected int computeVerticalScrollRange()

computeVerticalScrollOffset

protected int computeVerticalScrollOffset()

computeVerticalScrollExtent

protected int computeVerticalScrollExtent()

canScrollHorizontally

public boolean canScrollHorizontally(int direction)

canScrollVertically

public boolean canScrollVertically(int direction)

onDrawScrollBars

protected final void onDrawScrollBars(Canvas canvas)

onDraw

protected void onDraw(Canvas canvas)

onAttachedToWindow

protected void onAttachedToWindow()

onDetachedFromWindow

protected void onDetachedFromWindow()

getWindowAttachCount

protected int getWindowAttachCount()

getWindowToken

public IBinder getWindowToken()

getApplicationWindowToken

public IBinder getApplicationWindowToken()

saveHierarchyState

public void saveHierarchyState(SparseArray<Parcelable> container)

dispatchSaveInstanceState

protected void dispatchSaveInstanceState(SparseArray<Parcelable> container)

onSaveInstanceState

protected Parcelable onSaveInstanceState()

restoreHierarchyState

public void restoreHierarchyState(SparseArray<Parcelable> container)

dispatchRestoreInstanceState

protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container)

onRestoreInstanceState

protected void onRestoreInstanceState(Parcelable state)

getDrawingTime

public long getDrawingTime()

setDuplicateParentStateEnabled

public void setDuplicateParentStateEnabled(boolean enabled)

isDuplicateParentStateEnabled

public boolean isDuplicateParentStateEnabled()

setLayerType

public void setLayerType(int layerType,
                         Paint paint)

getLayerType

public int getLayerType()

buildLayer

public void buildLayer()

setDrawingCacheEnabled

public void setDrawingCacheEnabled(boolean enabled)

isDrawingCacheEnabled

public boolean isDrawingCacheEnabled()

getDrawingCache

public Bitmap getDrawingCache()

getDrawingCache

public Bitmap getDrawingCache(boolean autoScale)

destroyDrawingCache

public void destroyDrawingCache()

setDrawingCacheBackgroundColor

public void setDrawingCacheBackgroundColor(int color)

getDrawingCacheBackgroundColor

public int getDrawingCacheBackgroundColor()

buildDrawingCache

public void buildDrawingCache()

buildDrawingCache

public void buildDrawingCache(boolean autoScale)

isInEditMode

public boolean isInEditMode()

isPaddingOffsetRequired

protected boolean isPaddingOffsetRequired()

getLeftPaddingOffset

protected int getLeftPaddingOffset()

getRightPaddingOffset

protected int getRightPaddingOffset()

getTopPaddingOffset

protected int getTopPaddingOffset()

getBottomPaddingOffset

protected int getBottomPaddingOffset()

isHardwareAccelerated

public boolean isHardwareAccelerated()

draw

public void draw(Canvas canvas)

getSolidColor

public int getSolidColor()

isLayoutRequested

public boolean isLayoutRequested()

layout

public void layout(int l,
                   int t,
                   int r,
                   int b)

onLayout

protected void onLayout(boolean changed,
                        int left,
                        int top,
                        int right,
                        int bottom)

onFinishInflate

protected void onFinishInflate()

getResources

public Resources getResources()

invalidateDrawable

public void invalidateDrawable(Drawable drawable)
Specified by:
invalidateDrawable in interface Drawable.Callback

scheduleDrawable

public void scheduleDrawable(Drawable who,
                             Runnable what,
                             long when)
Specified by:
scheduleDrawable in interface Drawable.Callback

unscheduleDrawable

public void unscheduleDrawable(Drawable who,
                               Runnable what)
Specified by:
unscheduleDrawable in interface Drawable.Callback

unscheduleDrawable

public void unscheduleDrawable(Drawable who)

verifyDrawable

protected boolean verifyDrawable(Drawable who)

drawableStateChanged

protected void drawableStateChanged()

refreshDrawableState

public void refreshDrawableState()

getDrawableState

public final int[] getDrawableState()

onCreateDrawableState

protected int[] onCreateDrawableState(int extraSpace)

mergeDrawableStates

protected static int[] mergeDrawableStates(int[] baseState,
                                           int[] additionalState)

jumpDrawablesToCurrentState

public void jumpDrawablesToCurrentState()

setBackgroundColor

public void setBackgroundColor(int color)

setBackgroundResource

public void setBackgroundResource(int resid)

setBackgroundDrawable

public void setBackgroundDrawable(Drawable d)

getBackground

public Drawable getBackground()

setPadding

public void setPadding(int left,
                       int top,
                       int right,
                       int bottom)

getPaddingTop

public int getPaddingTop()

getPaddingBottom

public int getPaddingBottom()

getPaddingLeft

public int getPaddingLeft()

getPaddingRight

public int getPaddingRight()

setSelected

public void setSelected(boolean selected)

dispatchSetSelected

protected void dispatchSetSelected(boolean selected)

isSelected

public boolean isSelected()

setActivated

public void setActivated(boolean activated)

dispatchSetActivated

protected void dispatchSetActivated(boolean activated)

isActivated

public boolean isActivated()

getViewTreeObserver

public ViewTreeObserver getViewTreeObserver()

getRootView

public View getRootView()

getLocationOnScreen

public void getLocationOnScreen(int[] location)

getLocationInWindow

public void getLocationInWindow(int[] location)

findViewById

public final View findViewById(int id)

findViewWithTag

public final View findViewWithTag(Object tag)

setId

public void setId(int id)

getId

public int getId()

getTag

public Object getTag()

setTag

public void setTag(Object tag)

getTag

public Object getTag(int key)

setTag

public void setTag(int key,
                   Object tag)

getBaseline

public int getBaseline()

requestLayout

public void requestLayout()

forceLayout

public void forceLayout()

measure

public final void measure(int widthMeasureSpec,
                          int heightMeasureSpec)

onMeasure

protected void onMeasure(int widthMeasureSpec,
                         int heightMeasureSpec)

setMeasuredDimension

protected final void setMeasuredDimension(int measuredWidth,
                                          int measuredHeight)

combineMeasuredStates

public static int combineMeasuredStates(int curState,
                                        int newState)

resolveSize

public static int resolveSize(int size,
                              int measureSpec)

resolveSizeAndState

public static int resolveSizeAndState(int size,
                                      int measureSpec,
                                      int childMeasuredState)

getDefaultSize

public static int getDefaultSize(int size,
                                 int measureSpec)

getSuggestedMinimumHeight

protected int getSuggestedMinimumHeight()

getSuggestedMinimumWidth

protected int getSuggestedMinimumWidth()

setMinimumHeight

public void setMinimumHeight(int minHeight)

setMinimumWidth

public void setMinimumWidth(int minWidth)

getAnimation

public Animation getAnimation()

startAnimation

public void startAnimation(Animation animation)

clearAnimation

public void clearAnimation()

setAnimation

public void setAnimation(Animation animation)

onAnimationStart

protected void onAnimationStart()

onAnimationEnd

protected void onAnimationEnd()

onSetAlpha

protected boolean onSetAlpha(int alpha)

playSoundEffect

public void playSoundEffect(int soundConstant)

performHapticFeedback

public boolean performHapticFeedback(int feedbackConstant)

performHapticFeedback

public boolean performHapticFeedback(int feedbackConstant,
                                     int flags)

setSystemUiVisibility

public void setSystemUiVisibility(int visibility)

getSystemUiVisibility

public int getSystemUiVisibility()

setOnSystemUiVisibilityChangeListener

public void setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener l)

dispatchSystemUiVisibilityChanged

public void dispatchSystemUiVisibilityChanged(int visibility)

startDrag

public final boolean startDrag(ClipData data,
                               View.DragShadowBuilder shadowBuilder,
                               Object myLocalState,
                               int flags)

onDragEvent

public boolean onDragEvent(DragEvent event)

dispatchDragEvent

public boolean dispatchDragEvent(DragEvent event)

inflate

public static View inflate(Context context,
                           int resource,
                           ViewGroup root)

overScrollBy

protected boolean overScrollBy(int deltaX,
                               int deltaY,
                               int scrollX,
                               int scrollY,
                               int scrollRangeX,
                               int scrollRangeY,
                               int maxOverScrollX,
                               int maxOverScrollY,
                               boolean isTouchEvent)

onOverScrolled

protected void onOverScrolled(int scrollX,
                              int scrollY,
                              boolean clampedX,
                              boolean clampedY)

getOverScrollMode

public int getOverScrollMode()

setOverScrollMode

public void setOverScrollMode(int overScrollMode)

animate

public ViewPropertyAnimator animate()


Copyright © 2008-2012. All Rights Reserved.