android.view
Class ViewGroup

java.lang.Object
  extended by android.view.View
      extended by android.view.ViewGroup
All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewManager, ViewParent
Direct Known Subclasses:
AbsoluteLayout, AdapterView, FragmentBreadCrumbs, FrameLayout, GridLayout, LinearLayout, RelativeLayout, SlidingDrawer

public abstract class ViewGroup
extends View
implements ViewParent, ViewManager


Nested Class Summary
static class ViewGroup.LayoutParams
           
static class ViewGroup.MarginLayoutParams
           
static interface ViewGroup.OnHierarchyChangeListener
           
 
Nested classes/interfaces inherited from class android.view.View
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.OnTouchListener
 
Field Summary
protected static int CLIP_TO_PADDING_MASK
           
static int FOCUS_AFTER_DESCENDANTS
           
static int FOCUS_BEFORE_DESCENDANTS
           
static int FOCUS_BLOCK_DESCENDANTS
           
static int PERSISTENT_ALL_CACHES
           
static int PERSISTENT_ANIMATION_CACHE
           
static int PERSISTENT_NO_CACHE
           
static int PERSISTENT_SCROLLING_CACHE
           
 
Fields inherited from class android.view.View
ALPHA, 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, 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, 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_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y
 
Constructor Summary
ViewGroup(Context context)
           
ViewGroup(Context context, AttributeSet attrs)
           
ViewGroup(Context context, AttributeSet attrs, int defStyle)
           
 
Method Summary
 void addFocusables(ArrayList<View> views, int direction)
           
 void addFocusables(ArrayList<View> views, int direction, int focusableMode)
           
 boolean addStatesFromChildren()
           
 void addTouchables(ArrayList<View> views)
           
 void addView(View child)
           
 void addView(View child, int index)
           
 void addView(View child, int width, int height)
           
 void addView(View child, int index, ViewGroup.LayoutParams params)
           
 void addView(View child, ViewGroup.LayoutParams params)
           
protected  boolean addViewInLayout(View child, int index, ViewGroup.LayoutParams params)
           
protected  boolean addViewInLayout(View child, int index, ViewGroup.LayoutParams params, boolean preventRequestLayout)
           
protected  void attachLayoutAnimationParameters(View child, ViewGroup.LayoutParams params, int index, int count)
           
protected  void attachViewToParent(View child, int index, ViewGroup.LayoutParams params)
           
 void bringChildToFront(View child)
           
protected  boolean canAnimate()
           
protected  boolean checkLayoutParams(ViewGroup.LayoutParams p)
           
 void childDrawableStateChanged(View child)
           
protected  void cleanupLayoutState(View child)
           
 void clearChildFocus(View child)
           
 void clearDisappearingChildren()
           
 void clearFocus()
           
protected  void debug(int depth)
           
protected  void detachAllViewsFromParent()
           
protected  void detachViewFromParent(int index)
           
protected  void detachViewFromParent(View child)
           
protected  void detachViewsFromParent(int start, int count)
           
 void dispatchConfigurationChanged(Configuration newConfig)
           
 void dispatchDisplayHint(int hint)
           
 boolean dispatchDragEvent(DragEvent event)
           
protected  void dispatchDraw(Canvas canvas)
           
protected  void dispatchFreezeSelfOnly(SparseArray<Parcelable> container)
           
protected  boolean dispatchGenericFocusedEvent(MotionEvent event)
           
protected  boolean dispatchGenericPointerEvent(MotionEvent event)
           
protected  boolean dispatchHoverEvent(MotionEvent event)
           
 boolean dispatchKeyEvent(KeyEvent event)
           
 boolean dispatchKeyEventPreIme(KeyEvent event)
           
 boolean dispatchKeyShortcutEvent(KeyEvent event)
           
protected  void dispatchRestoreInstanceState(SparseArray<Parcelable> container)
           
protected  void dispatchSaveInstanceState(SparseArray<Parcelable> container)
           
 void dispatchSetActivated(boolean activated)
           
protected  void dispatchSetPressed(boolean pressed)
           
 void dispatchSetSelected(boolean selected)
           
 void dispatchSystemUiVisibilityChanged(int visible)
           
protected  void dispatchThawSelfOnly(SparseArray<Parcelable> container)
           
 boolean dispatchTouchEvent(MotionEvent ev)
           
 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)
           
protected  void drawableStateChanged()
           
protected  boolean drawChild(Canvas canvas, View child, long drawingTime)
           
 void endViewTransition(View view)
           
 View findFocus()
           
 void findViewsWithText(ArrayList<View> outViews, CharSequence text, int flags)
           
protected  boolean fitSystemWindows(Rect insets)
           
 void focusableViewAvailable(View v)
           
 View focusSearch(View focused, int direction)
           
 boolean gatherTransparentRegion(Region region)
           
protected  ViewGroup.LayoutParams generateDefaultLayoutParams()
           
 ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)
           
protected  ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)
           
 View getChildAt(int index)
           
 int getChildCount()
           
protected  int getChildDrawingOrder(int childCount, int i)
           
static int getChildMeasureSpec(int spec, int padding, int childDimension)
           
protected  boolean getChildStaticTransformation(View child, Transformation t)
           
 boolean getChildVisibleRect(View child, Rect r, Point offset)
           
 int getDescendantFocusability()
           
 View getFocusedChild()
           
 LayoutAnimationController getLayoutAnimation()
           
 Animation.AnimationListener getLayoutAnimationListener()
           
 LayoutTransition getLayoutTransition()
           
 int getPersistentDrawingCache()
           
 boolean hasFocus()
           
 boolean hasFocusable()
           
 int indexOfChild(View child)
           
 void invalidateChild(View child, Rect dirty)
           
 ViewParent invalidateChildInParent(int[] location, Rect dirty)
           
 boolean isAlwaysDrawnWithCacheEnabled()
           
 boolean isAnimationCacheEnabled()
           
protected  boolean isChildrenDrawingOrderEnabled()
           
protected  boolean isChildrenDrawnWithCacheEnabled()
           
 boolean isMotionEventSplittingEnabled()
           
 void jumpDrawablesToCurrentState()
           
 void layout(int l, int t, int r, int b)
           
protected  void measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec)
           
protected  void measureChildren(int widthMeasureSpec, int heightMeasureSpec)
           
protected  void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed)
           
 void offsetDescendantRectToMyCoords(View descendant, Rect rect)
           
 void offsetRectIntoDescendantCoords(View descendant, Rect rect)
           
protected  void onAnimationEnd()
           
protected  void onAnimationStart()
           
protected  int[] onCreateDrawableState(int extraSpace)
           
 boolean onInterceptHoverEvent(MotionEvent event)
           
 boolean onInterceptTouchEvent(MotionEvent ev)
           
protected abstract  void onLayout(boolean changed, int l, int t, int r, int b)
           
protected  boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect)
           
 boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event)
           
 void recomputeViewAttributes(View child)
           
 void removeAllViews()
           
 void removeAllViewsInLayout()
           
protected  void removeDetachedView(View child, boolean animate)
           
 void removeView(View view)
           
 void removeViewAt(int index)
           
 void removeViewInLayout(View view)
           
 void removeViews(int start, int count)
           
 void removeViewsInLayout(int start, int count)
           
 void requestChildFocus(View child, View focused)
           
 boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate)
           
 void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
           
 boolean requestFocus(int direction, Rect previouslyFocusedRect)
           
 boolean requestSendAccessibilityEvent(View child, AccessibilityEvent event)
           
 void requestTransparentRegion(View child)
           
protected  void resetResolvedLayoutDirection()
           
protected  void resetResolvedTextDirection()
           
 void scheduleLayoutAnimation()
           
 void setAddStatesFromChildren(boolean addsStates)
           
 void setAlwaysDrawnWithCacheEnabled(boolean always)
           
 void setAnimationCacheEnabled(boolean enabled)
           
protected  void setChildrenDrawingCacheEnabled(boolean enabled)
           
protected  void setChildrenDrawingOrderEnabled(boolean enabled)
           
protected  void setChildrenDrawnWithCacheEnabled(boolean enabled)
           
 void setClipChildren(boolean clipChildren)
           
 void setClipToPadding(boolean clipToPadding)
           
 void setDescendantFocusability(int focusability)
           
 void setLayoutAnimation(LayoutAnimationController controller)
           
 void setLayoutAnimationListener(Animation.AnimationListener animationListener)
           
 void setLayoutTransition(LayoutTransition transition)
           
 void setMotionEventSplittingEnabled(boolean split)
           
 void setOnHierarchyChangeListener(ViewGroup.OnHierarchyChangeListener listener)
           
 void setPadding(int left, int top, int right, int bottom)
           
 void setPersistentDrawingCache(int drawingCacheToKeep)
           
protected  void setStaticTransformationsEnabled(boolean enabled)
           
 boolean shouldDelayChildPressedState()
           
 boolean showContextMenuForChild(View originalView)
           
 ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback)
           
 void startLayoutAnimation()
           
 void startViewTransition(View view)
           
 void updateViewLayout(View view, ViewGroup.LayoutParams params)
           
 
Methods inherited from class android.view.View
addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, cancelLongPress, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchPopulateAccessibilityEvent, draw, findViewById, findViewWithTag, fitsSystemWindows, focusSearch, forceLayout, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDetachedFromWindow, onDisplayHint, onDragEvent, onDraw, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onMeasure, onOverScrolled, onPopulateAccessibilityEvent, onRestoreInstanceState, onSaveInstanceState, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowVisibilityChanged, overScrollBy, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAlpha, setAnimation, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, 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, setScrollbarFadingEnabled, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.view.ViewParent
createContextMenu, getParent, isLayoutRequested, requestLayout
 

Field Detail

FOCUS_BEFORE_DESCENDANTS

public static final int FOCUS_BEFORE_DESCENDANTS
See Also:
Constant Field Values

FOCUS_AFTER_DESCENDANTS

public static final int FOCUS_AFTER_DESCENDANTS
See Also:
Constant Field Values

FOCUS_BLOCK_DESCENDANTS

public static final int FOCUS_BLOCK_DESCENDANTS
See Also:
Constant Field Values

PERSISTENT_NO_CACHE

public static final int PERSISTENT_NO_CACHE
See Also:
Constant Field Values

PERSISTENT_ANIMATION_CACHE

public static final int PERSISTENT_ANIMATION_CACHE
See Also:
Constant Field Values

PERSISTENT_SCROLLING_CACHE

public static final int PERSISTENT_SCROLLING_CACHE
See Also:
Constant Field Values

PERSISTENT_ALL_CACHES

public static final int PERSISTENT_ALL_CACHES
See Also:
Constant Field Values

CLIP_TO_PADDING_MASK

protected static final int CLIP_TO_PADDING_MASK
See Also:
Constant Field Values
Constructor Detail

ViewGroup

public ViewGroup(Context context)

ViewGroup

public ViewGroup(Context context,
                 AttributeSet attrs)

ViewGroup

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

getDescendantFocusability

public int getDescendantFocusability()

setDescendantFocusability

public void setDescendantFocusability(int focusability)

requestChildFocus

public void requestChildFocus(View child,
                              View focused)
Specified by:
requestChildFocus in interface ViewParent

focusableViewAvailable

public void focusableViewAvailable(View v)
Specified by:
focusableViewAvailable in interface ViewParent

showContextMenuForChild

public boolean showContextMenuForChild(View originalView)
Specified by:
showContextMenuForChild in interface ViewParent

startActionModeForChild

public ActionMode startActionModeForChild(View originalView,
                                          ActionMode.Callback callback)
Specified by:
startActionModeForChild in interface ViewParent

focusSearch

public View focusSearch(View focused,
                        int direction)
Specified by:
focusSearch in interface ViewParent

requestChildRectangleOnScreen

public boolean requestChildRectangleOnScreen(View child,
                                             Rect rectangle,
                                             boolean immediate)
Specified by:
requestChildRectangleOnScreen in interface ViewParent

requestSendAccessibilityEvent

public boolean requestSendAccessibilityEvent(View child,
                                             AccessibilityEvent event)
Specified by:
requestSendAccessibilityEvent in interface ViewParent

onRequestSendAccessibilityEvent

public boolean onRequestSendAccessibilityEvent(View child,
                                               AccessibilityEvent event)

dispatchUnhandledMove

public boolean dispatchUnhandledMove(View focused,
                                     int direction)
Overrides:
dispatchUnhandledMove in class View

clearChildFocus

public void clearChildFocus(View child)
Specified by:
clearChildFocus in interface ViewParent

clearFocus

public void clearFocus()
Overrides:
clearFocus in class View

getFocusedChild

public View getFocusedChild()

hasFocus

public boolean hasFocus()
Overrides:
hasFocus in class View

findFocus

public View findFocus()
Overrides:
findFocus in class View

hasFocusable

public boolean hasFocusable()
Overrides:
hasFocusable in class View

addFocusables

public void addFocusables(ArrayList<View> views,
                          int direction)
Overrides:
addFocusables in class View

addFocusables

public void addFocusables(ArrayList<View> views,
                          int direction,
                          int focusableMode)
Overrides:
addFocusables in class View

findViewsWithText

public void findViewsWithText(ArrayList<View> outViews,
                              CharSequence text,
                              int flags)
Overrides:
findViewsWithText in class View

dispatchWindowFocusChanged

public void dispatchWindowFocusChanged(boolean hasFocus)
Overrides:
dispatchWindowFocusChanged in class View

addTouchables

public void addTouchables(ArrayList<View> views)
Overrides:
addTouchables in class View

dispatchDisplayHint

public void dispatchDisplayHint(int hint)
Overrides:
dispatchDisplayHint in class View

dispatchVisibilityChanged

protected void dispatchVisibilityChanged(View changedView,
                                         int visibility)
Overrides:
dispatchVisibilityChanged in class View

dispatchWindowVisibilityChanged

public void dispatchWindowVisibilityChanged(int visibility)
Overrides:
dispatchWindowVisibilityChanged in class View

dispatchConfigurationChanged

public void dispatchConfigurationChanged(Configuration newConfig)
Overrides:
dispatchConfigurationChanged in class View

recomputeViewAttributes

public void recomputeViewAttributes(View child)
Specified by:
recomputeViewAttributes in interface ViewParent

bringChildToFront

public void bringChildToFront(View child)
Specified by:
bringChildToFront in interface ViewParent

dispatchDragEvent

public boolean dispatchDragEvent(DragEvent event)
Overrides:
dispatchDragEvent in class View

dispatchSystemUiVisibilityChanged

public void dispatchSystemUiVisibilityChanged(int visible)
Overrides:
dispatchSystemUiVisibilityChanged in class View

dispatchKeyEventPreIme

public boolean dispatchKeyEventPreIme(KeyEvent event)
Overrides:
dispatchKeyEventPreIme in class View

dispatchKeyEvent

public boolean dispatchKeyEvent(KeyEvent event)
Overrides:
dispatchKeyEvent in class View

dispatchKeyShortcutEvent

public boolean dispatchKeyShortcutEvent(KeyEvent event)
Overrides:
dispatchKeyShortcutEvent in class View

dispatchTrackballEvent

public boolean dispatchTrackballEvent(MotionEvent event)
Overrides:
dispatchTrackballEvent in class View

dispatchHoverEvent

protected boolean dispatchHoverEvent(MotionEvent event)
Overrides:
dispatchHoverEvent in class View

onInterceptHoverEvent

public boolean onInterceptHoverEvent(MotionEvent event)

dispatchGenericPointerEvent

protected boolean dispatchGenericPointerEvent(MotionEvent event)
Overrides:
dispatchGenericPointerEvent in class View

dispatchGenericFocusedEvent

protected boolean dispatchGenericFocusedEvent(MotionEvent event)
Overrides:
dispatchGenericFocusedEvent in class View

dispatchTouchEvent

public boolean dispatchTouchEvent(MotionEvent ev)
Overrides:
dispatchTouchEvent in class View

setMotionEventSplittingEnabled

public void setMotionEventSplittingEnabled(boolean split)

isMotionEventSplittingEnabled

public boolean isMotionEventSplittingEnabled()

requestDisallowInterceptTouchEvent

public void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
Specified by:
requestDisallowInterceptTouchEvent in interface ViewParent

onInterceptTouchEvent

public boolean onInterceptTouchEvent(MotionEvent ev)

requestFocus

public boolean requestFocus(int direction,
                            Rect previouslyFocusedRect)
Overrides:
requestFocus in class View

onRequestFocusInDescendants

protected boolean onRequestFocusInDescendants(int direction,
                                              Rect previouslyFocusedRect)

setPadding

public void setPadding(int left,
                       int top,
                       int right,
                       int bottom)
Overrides:
setPadding in class View

dispatchSaveInstanceState

protected void dispatchSaveInstanceState(SparseArray<Parcelable> container)
Overrides:
dispatchSaveInstanceState in class View

dispatchFreezeSelfOnly

protected void dispatchFreezeSelfOnly(SparseArray<Parcelable> container)

dispatchRestoreInstanceState

protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container)
Overrides:
dispatchRestoreInstanceState in class View

dispatchThawSelfOnly

protected void dispatchThawSelfOnly(SparseArray<Parcelable> container)

setChildrenDrawingCacheEnabled

protected void setChildrenDrawingCacheEnabled(boolean enabled)

onAnimationStart

protected void onAnimationStart()
Overrides:
onAnimationStart in class View

onAnimationEnd

protected void onAnimationEnd()
Overrides:
onAnimationEnd in class View

dispatchDraw

protected void dispatchDraw(Canvas canvas)
Overrides:
dispatchDraw in class View

getChildDrawingOrder

protected int getChildDrawingOrder(int childCount,
                                   int i)

drawChild

protected boolean drawChild(Canvas canvas,
                            View child,
                            long drawingTime)

setClipChildren

public void setClipChildren(boolean clipChildren)

setClipToPadding

public void setClipToPadding(boolean clipToPadding)

dispatchSetSelected

public void dispatchSetSelected(boolean selected)
Overrides:
dispatchSetSelected in class View

dispatchSetActivated

public void dispatchSetActivated(boolean activated)
Overrides:
dispatchSetActivated in class View

dispatchSetPressed

protected void dispatchSetPressed(boolean pressed)
Overrides:
dispatchSetPressed in class View

setStaticTransformationsEnabled

protected void setStaticTransformationsEnabled(boolean enabled)

getChildStaticTransformation

protected boolean getChildStaticTransformation(View child,
                                               Transformation t)

addView

public void addView(View child)

addView

public void addView(View child,
                    int index)

addView

public void addView(View child,
                    int width,
                    int height)

addView

public void addView(View child,
                    ViewGroup.LayoutParams params)
Specified by:
addView in interface ViewManager

addView

public void addView(View child,
                    int index,
                    ViewGroup.LayoutParams params)

updateViewLayout

public void updateViewLayout(View view,
                             ViewGroup.LayoutParams params)
Specified by:
updateViewLayout in interface ViewManager

checkLayoutParams

protected boolean checkLayoutParams(ViewGroup.LayoutParams p)

setOnHierarchyChangeListener

public void setOnHierarchyChangeListener(ViewGroup.OnHierarchyChangeListener listener)

addViewInLayout

protected boolean addViewInLayout(View child,
                                  int index,
                                  ViewGroup.LayoutParams params)

addViewInLayout

protected boolean addViewInLayout(View child,
                                  int index,
                                  ViewGroup.LayoutParams params,
                                  boolean preventRequestLayout)

cleanupLayoutState

protected void cleanupLayoutState(View child)

attachLayoutAnimationParameters

protected void attachLayoutAnimationParameters(View child,
                                               ViewGroup.LayoutParams params,
                                               int index,
                                               int count)

removeView

public void removeView(View view)
Specified by:
removeView in interface ViewManager

removeViewInLayout

public void removeViewInLayout(View view)

removeViewsInLayout

public void removeViewsInLayout(int start,
                                int count)

removeViewAt

public void removeViewAt(int index)

removeViews

public void removeViews(int start,
                        int count)

setLayoutTransition

public void setLayoutTransition(LayoutTransition transition)

getLayoutTransition

public LayoutTransition getLayoutTransition()

removeAllViews

public void removeAllViews()

removeAllViewsInLayout

public void removeAllViewsInLayout()

removeDetachedView

protected void removeDetachedView(View child,
                                  boolean animate)

attachViewToParent

protected void attachViewToParent(View child,
                                  int index,
                                  ViewGroup.LayoutParams params)

detachViewFromParent

protected void detachViewFromParent(View child)

detachViewFromParent

protected void detachViewFromParent(int index)

detachViewsFromParent

protected void detachViewsFromParent(int start,
                                     int count)

detachAllViewsFromParent

protected void detachAllViewsFromParent()

invalidateChild

public final void invalidateChild(View child,
                                  Rect dirty)
Specified by:
invalidateChild in interface ViewParent

invalidateChildInParent

public ViewParent invalidateChildInParent(int[] location,
                                          Rect dirty)
Specified by:
invalidateChildInParent in interface ViewParent

offsetDescendantRectToMyCoords

public final void offsetDescendantRectToMyCoords(View descendant,
                                                 Rect rect)

offsetRectIntoDescendantCoords

public final void offsetRectIntoDescendantCoords(View descendant,
                                                 Rect rect)

getChildVisibleRect

public boolean getChildVisibleRect(View child,
                                   Rect r,
                                   Point offset)
Specified by:
getChildVisibleRect in interface ViewParent

layout

public final void layout(int l,
                         int t,
                         int r,
                         int b)
Overrides:
layout in class View

onLayout

protected abstract void onLayout(boolean changed,
                                 int l,
                                 int t,
                                 int r,
                                 int b)
Overrides:
onLayout in class View

canAnimate

protected boolean canAnimate()

startLayoutAnimation

public void startLayoutAnimation()

scheduleLayoutAnimation

public void scheduleLayoutAnimation()

setLayoutAnimation

public void setLayoutAnimation(LayoutAnimationController controller)

getLayoutAnimation

public LayoutAnimationController getLayoutAnimation()

isAnimationCacheEnabled

public boolean isAnimationCacheEnabled()

setAnimationCacheEnabled

public void setAnimationCacheEnabled(boolean enabled)

isAlwaysDrawnWithCacheEnabled

public boolean isAlwaysDrawnWithCacheEnabled()

setAlwaysDrawnWithCacheEnabled

public void setAlwaysDrawnWithCacheEnabled(boolean always)

isChildrenDrawnWithCacheEnabled

protected boolean isChildrenDrawnWithCacheEnabled()

setChildrenDrawnWithCacheEnabled

protected void setChildrenDrawnWithCacheEnabled(boolean enabled)

isChildrenDrawingOrderEnabled

protected boolean isChildrenDrawingOrderEnabled()

setChildrenDrawingOrderEnabled

protected void setChildrenDrawingOrderEnabled(boolean enabled)

getPersistentDrawingCache

public int getPersistentDrawingCache()

setPersistentDrawingCache

public void setPersistentDrawingCache(int drawingCacheToKeep)

generateLayoutParams

public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)

generateLayoutParams

protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)

generateDefaultLayoutParams

protected ViewGroup.LayoutParams generateDefaultLayoutParams()

debug

protected void debug(int depth)

indexOfChild

public int indexOfChild(View child)

getChildCount

public int getChildCount()

getChildAt

public View getChildAt(int index)

measureChildren

protected void measureChildren(int widthMeasureSpec,
                               int heightMeasureSpec)

measureChild

protected void measureChild(View child,
                            int parentWidthMeasureSpec,
                            int parentHeightMeasureSpec)

measureChildWithMargins

protected void measureChildWithMargins(View child,
                                       int parentWidthMeasureSpec,
                                       int widthUsed,
                                       int parentHeightMeasureSpec,
                                       int heightUsed)

getChildMeasureSpec

public static int getChildMeasureSpec(int spec,
                                      int padding,
                                      int childDimension)

clearDisappearingChildren

public void clearDisappearingChildren()

startViewTransition

public void startViewTransition(View view)

endViewTransition

public void endViewTransition(View view)

gatherTransparentRegion

public boolean gatherTransparentRegion(Region region)

requestTransparentRegion

public void requestTransparentRegion(View child)
Specified by:
requestTransparentRegion in interface ViewParent

fitSystemWindows

protected boolean fitSystemWindows(Rect insets)
Overrides:
fitSystemWindows in class View

getLayoutAnimationListener

public Animation.AnimationListener getLayoutAnimationListener()

drawableStateChanged

protected void drawableStateChanged()
Overrides:
drawableStateChanged in class View

jumpDrawablesToCurrentState

public void jumpDrawablesToCurrentState()
Overrides:
jumpDrawablesToCurrentState in class View

onCreateDrawableState

protected int[] onCreateDrawableState(int extraSpace)
Overrides:
onCreateDrawableState in class View

setAddStatesFromChildren

public void setAddStatesFromChildren(boolean addsStates)

addStatesFromChildren

public boolean addStatesFromChildren()

childDrawableStateChanged

public void childDrawableStateChanged(View child)
Specified by:
childDrawableStateChanged in interface ViewParent

setLayoutAnimationListener

public void setLayoutAnimationListener(Animation.AnimationListener animationListener)

resetResolvedLayoutDirection

protected void resetResolvedLayoutDirection()

resetResolvedTextDirection

protected void resetResolvedTextDirection()

shouldDelayChildPressedState

public boolean shouldDelayChildPressedState()


Copyright © 2008-2012. All Rights Reserved.