Build m3-rc37a

android.view
Class ViewGroup

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

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.MeasureSpec, View.OnClickListener, View.OnFocusChangeListener, View.OnKeyListener
 
Field Summary
protected  ArrayList mDisappearingChildren
           
protected  ViewGroup.OnHierarchyChangeListener mOnHierarchyChangeListener
           
 
Fields inherited from class android.view.View
FIRST_STATE_SET, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, GONE, INVISIBLE, LAST_STATE_SET, mBottom, mContext, mCurrentAnimation, MIDDLE_STATE_SET, mLayoutParams, mLeft, mMeasuredHeight, mMeasuredWidth, mOnClickListener, mOnFocusChangeListener, mPaddingBottom, mPaddingLeft, mPaddingRight, mPaddingTop, mParent, mRight, mScrollX, mScrollY, mTag, mTop, mWindowLeft, mWindowTop, NO_ID, NORMAL_FOCUS, PRESSED_STATE_DURATION, PRESSED_STATE_SET, SINGLE_STATE_SET, VIEW_LOG_TAG, VISIBLE, WEAK_FOCUS
 
Constructor Summary
ViewGroup(Context context)
           
ViewGroup(Context context, AttributeSet attrs, Map inflateParams)
           
ViewGroup(Context context, AttributeSet attrs, Map inflateParams, int defStyle)
           
 
Method Summary
 void addView(View child)
           
 void addView(View child, int index)
           
 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)
           
 void bringChildToFront(View child)
           
protected  boolean checkLayoutParams(ViewGroup.LayoutParams p)
           
 void clearChildFocus(View child)
           
 void clearDisappearingChildren()
           
 void clearFocus()
           
protected  void debug(int depth)
           
protected  void dispatchDraw(Canvas canvas)
           
 boolean dispatchKeyEvent(KeyEvent event)
           
 boolean dispatchMotionEvent(MotionEvent ev)
           
 boolean dispatchUnhandledMove(View focused, int direction)
           
 void dispatchWindowFocusChanged(boolean hasFocus)
           
 View findFocus()
           
protected  View findViewTraversal(int id)
           
protected  View findViewWithTagTraversal(Object tag)
           
 void focusableViewAvailable(View v)
           
 View focusSearch(View v, int direction)
           
protected  void gatherTransparentRegion(Region region)
           
 ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)
           
 View getChildAt(int index)
           
 int getChildCount()
           
static int getChildMeasureSpec(int spec, int padding, int childDimension)
           
protected  boolean getChildStaticTransformation(View child, Transformation t)
           
 boolean getChildVisibleRect(View child, Rect r, Point offset)
           
 View getFocusedChild()
           
 boolean hasFocus()
           
 int indexOfChild(View child)
           
 void invalidateChild(View child, Rect dirty)
           
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)
           
 boolean onInterceptMotionEvent(MotionEvent ev)
           
protected abstract  void onLayout(boolean flag, int i, int j, int k, int l, int i1, int j1)
           
 void removeAllViews()
           
 void removeAllViewsInLayout()
           
 void removeView(View view)
           
 void removeViewAt(int index)
           
 void removeViewInLayout(View view)
           
 void requestChildFocus(View child, View focused)
           
 boolean requestChildRectangleOnScreen(View child, Rect rectangle)
           
 void requestFocus(int direction)
           
 void requestTransparentRegion(View child)
           
 boolean scrollContentBy(int x, int y)
           
 void setClipChildren(boolean clipChildren)
           
 void setClipToPadding(boolean clipToPadding)
           
 void setOnHierarchyChangeListener(ViewGroup.OnHierarchyChangeListener listener)
           
 void setSelected(boolean selected)
           
 boolean takeFocus(int direction)
           
 void updateViewLayout(View view, ViewGroup.LayoutParams params)
           
 
Methods inherited from class android.view.View
applyDrawableToTransparentRegion, awakenScrollBars, awakenScrollBars, bringToFront, clearAnimation, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, copyWindowBitmap, createDrawableState, debug, debugIndent, draw, drawableStateChanged, findParentViewOfType, findViewById, findViewWithTag, focusSearch, focusSearchInDescendants, forceLayout, getAbsoluteLocationOnScreen, getBackground, getBaseline, getBlockDescendantFocus, getBlockUnmatchedKeyUps, getBottom, getContext, getCurrentAnimation, getDefaultSize, getDrawableState, getDrawingRect, getDrawingTime, getFocusables, getFocusType, getGlobalVisibleRect, getGlobalVisibleRect, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getInterestingRect, getLayoutParams, getLeft, getLocalVisibleRect, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRootView, getScrollX, getScrollY, getTag, getTop, getVerticalFadingEdgeLength, getVisibility, getWidth, getWindowBottom, getWindowFrame, getWindowLeft, getWindowRight, getWindowSession, getWindowToken, getWindowTop, hasBackground, hasWindowFocus, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isEnabled, isFocusable, isFocused, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isLayoutRequested, isRootNamespace, isSelected, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onDetachedFromWindow, onDraw, onDrawAfterChildren, onDrawBackground, onFinishInflate, onFocusChanged, onKeyDown, onKeyUp, onMeasure, onMotionEvent, onScrollChanged, onSizeChanged, performClick, postInvalidate, postInvalidateDelayed, refreshDrawableState, requestFocus, requestLayout, requestRectangleOnScreen, resolveSize, scheduleDrawable, scrollBy, scrollTo, setBackground, setBackground, setBackgroundColor, setBlockDescendantFocus, setBlockUnmatchedKeyUps, setCurrentAnimation, setEnabled, setFocusable, setFocusType, setFrame, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setIsRootNamespace, setKeyListener, setLayoutParams, setMeasuredDimension, setOnClickListener, setOnFocusChangeListener, setPadding, setPreferredHeight, setPreferredWidth, setTag, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotDraw, startAnimation, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotDraw, windowFocusChanged
 
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
isLayoutRequested, requestLayout
 

Field Detail

mDisappearingChildren

protected ArrayList mDisappearingChildren

mOnHierarchyChangeListener

protected ViewGroup.OnHierarchyChangeListener mOnHierarchyChangeListener
Constructor Detail

ViewGroup

public ViewGroup(Context context)

ViewGroup

public ViewGroup(Context context,
                 AttributeSet attrs,
                 Map inflateParams)

ViewGroup

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

requestFocus

public void requestFocus(int direction)
Overrides:
requestFocus in class View

scrollContentBy

public boolean scrollContentBy(int x,
                               int y)
Specified by:
scrollContentBy in interface ViewParent

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

focusSearch

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

requestChildRectangleOnScreen

public boolean requestChildRectangleOnScreen(View child,
                                             Rect rectangle)

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

dispatchWindowFocusChanged

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

bringChildToFront

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

dispatchKeyEvent

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

dispatchMotionEvent

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

onInterceptMotionEvent

public boolean onInterceptMotionEvent(MotionEvent ev)

takeFocus

public boolean takeFocus(int direction)
Overrides:
takeFocus in class View

dispatchDraw

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

setClipChildren

public void setClipChildren(boolean clipChildren)

setClipToPadding

public void setClipToPadding(boolean clipToPadding)

setSelected

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

getChildStaticTransformation

protected boolean getChildStaticTransformation(View child,
                                               Transformation t)

findViewTraversal

protected View findViewTraversal(int id)
Overrides:
findViewTraversal in class View

findViewWithTagTraversal

protected View findViewWithTagTraversal(Object tag)
Overrides:
findViewWithTagTraversal in class View

addView

public void addView(View child)

addView

public void addView(View child,
                    int index)

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)

removeView

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

removeViewInLayout

public void removeViewInLayout(View view)

removeViewAt

public void removeViewAt(int index)

removeAllViews

public void removeAllViews()

removeAllViewsInLayout

public void removeAllViewsInLayout()

invalidateChild

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

getChildVisibleRect

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

onLayout

protected abstract void onLayout(boolean flag,
                                 int i,
                                 int j,
                                 int k,
                                 int l,
                                 int i1,
                                 int j1)
Overrides:
onLayout in class View

generateLayoutParams

public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)

debug

protected void debug(int depth)
Overrides:
debug in class View

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()

gatherTransparentRegion

protected void gatherTransparentRegion(Region region)
Overrides:
gatherTransparentRegion in class View

requestTransparentRegion

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

Build m3-rc37a