Build m5-rc15

android.widget
Class AdapterView

java.lang.Object
  extended by android.view.View
      extended by android.view.ViewGroup
          extended by android.widget.AdapterView
All Implemented Interfaces:
Drawable.Callback, KeyEvent.Callback, ViewManager, ViewParent
Direct Known Subclasses:
AbsListView, Gallery, Spinner

public abstract class AdapterView
extends ViewGroup


Nested Class Summary
static class AdapterView.ContextMenuInfo
           
protected  class AdapterView.MyDataSetObserver
           
static interface AdapterView.OnItemClickListener
           
static interface AdapterView.OnItemLongClickListener
           
static interface AdapterView.OnItemSelectedListener
           
 
Nested classes/interfaces inherited from class android.view.ViewGroup
ViewGroup.LayoutParams, ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener
 
Nested classes/interfaces inherited from class android.view.View
View.CheckForKeyLongPress, View.MeasureSpec, View.OnClickListener, View.OnFocusChangeListener, View.OnKeyListener, View.OnLongClickListener, View.OnPopulateContextMenuListener
 
Field Summary
protected  boolean mDataChanged
           
protected  View mEmptyView
           
protected  int mFirstPosition
           
protected  boolean mInLayout
           
protected  int mItemCount
           
protected  boolean mNeedSync
           
protected  int mNextSelectedPosition
           
protected  long mNextSelectedRowId
           
protected  AdapterView.OnItemClickListener mOnItemClickListener
           
protected  AdapterView.OnItemLongClickListener mOnItemLongClickListener
           
protected  AdapterView.OnItemSelectedListener mOnItemSelectedListener
           
protected  int mSelectedPosition
           
protected  long mSelectedRowId
           
protected  int mSpecificTop
           
protected  int mSyncMode
           
protected  int mSyncPosition
           
protected  long mSyncRowId
           
protected static int SYNC_FIRST_POSITION
           
protected static int SYNC_MAX_DURATION_MILLIS
           
protected static int SYNC_SELECTED_POSITION
           
 
Fields inherited from class android.view.ViewGroup
FLAG_SUPPORT_STATIC_TRANSFORMATIONS, mDisappearingChildren, mGroupFlags, mOnHierarchyChangeListener, mPersistentDrawingCache, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
 
Fields inherited from class android.view.View
DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, 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, mLocation, mMeasuredHeight, mMeasuredWidth, mOnClickListener, mOnFocusChangeListener, mOnLongClickListener, mOnPopulateContextMenuListener, mPaddingBottom, mPaddingLeft, mPaddingRight, mPaddingTop, mParent, mRight, mScrollX, mScrollY, mTag, mTop, NO_ID, NORMAL_FOCUS, PRESSED_FIRST_STATE_SET, PRESSED_LAST_STATE_SET, PRESSED_MIDDLE_STATE_SET, PRESSED_SINGLE_STATE_SET, PRESSED_STATE_SET, SINGLE_STATE_SET, VIEW_LOG_TAG, VISIBLE, WEAK_FOCUS
 
Constructor Summary
AdapterView(Context context)
           
AdapterView(Context context, AttributeSet attrs, Map inflateParams)
           
AdapterView(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 canAnimate()
           
protected  void checkFocus()
           
protected  void dispatchFreeze(SparseArray container)
           
protected  void dispatchThaw(SparseArray container)
           
protected  int findSyncPosition()
           
abstract  Adapter getAdapter()
           
 int getCount()
           
 View getEmptyView()
           
 AdapterView.OnItemClickListener getOnItemClickListener()
           
 AdapterView.OnItemLongClickListener getOnItemLongClickListener()
           
 AdapterView.OnItemSelectedListener getOnItemSelectedListener()
           
 int getPositionForView(View view)
           
 Object getSelectedItem()
           
 long getSelectedItemId()
           
 int getSelectedItemPosition()
           
abstract  View getSelectedView()
           
protected  void handleDataChanged()
           
protected  int lookForSelectablePosition(int position, boolean lookDown)
           
 Object obtainItem(int position)
           
 long obtainItemId(int position)
           
 boolean performItemClick(View v, int position, long id)
           
protected  void rememberSyncState()
           
 void removeAllViews()
           
 void removeView(View view)
           
 void removeViewAt(int index)
           
protected  void selectionChanged()
           
abstract  void setAdapter(Adapter adapter)
           
 void setEmptyView(View emptyView)
           
protected  void setNextSelectedPositionInt(int position)
           
 void setOnClickListener(View.OnClickListener l)
           
 void setOnItemClickListener(AdapterView.OnItemClickListener l)
           
 void setOnItemLongClickListener(AdapterView.OnItemLongClickListener l)
           
 void setOnItemSelectedListener(AdapterView.OnItemSelectedListener l)
           
protected  void setSelectedPositionInt(int position)
           
abstract  void setSelection(int i)
           
 
Methods inherited from class android.view.ViewGroup
addsStatesFromChildren, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, checkLayoutParams, childDrawableStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, dispatchDraw, dispatchFreezeSelfOnly, dispatchKeyEvent, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, findFocus, findViewTraversal, findViewWithTagTraversal, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateLayoutParams, getChildAt, getChildCount, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getPeristentDrawingCache, hasFocus, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawnWithCacheEnabled, isKeepAnimations, measureChild, measureChildren, measureChildWithMargins, offsetChildrenTopAndBottom, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onCreateDrawableState, onInterceptTouchEvent, onLayout, removeAllViewsInLayout, removeDetachedView, removeViewInLayout, requestChildFocus, requestChildRectangleOnScreen, requestFocus, requestTransparentRegion, scheduleLayoutAnimation, setAddsStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setKeepAnimations, setLayoutAnimation, setLayoutAnimationListener, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, setSelected, showContextMenuForChild, startLayoutAnimation, updateViewLayout
 
Methods inherited from class android.view.View
applyDrawableToTransparentRegion, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, clearAnimation, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, copyWindowBitmap, debug, debugIndent, draw, drawableStateChanged, finalize, findViewById, findViewWithTag, focusSearch, freeze, getAbsoluteLocationOnScreen, getAnimation, getBackground, getBaseline, getBlockDescendantFocus, getBlockUnmatchedKeyUps, getBottom, getBottomFadingEdgeStrength, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFocusables, getFocusedRect, getFocusType, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getInstanceCount, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRightFadingEdgeStrength, getRootView, getScrollX, getScrollY, getTag, getTop, getTopFadingEdgeStrength, getVerticalFadingEdgeLength, getVerticalScrollbarWidth, getViewRootInstanceCount, getVisibility, getWidth, getWindowFrame, getWindowSession, getWindowToken, getWindowVisibility, hasBackground, hasWindowFocus, initializeFadingEdge, initializeScrollbars, inTouchMode, invalidate, invalidate, invalidate, invalidateDrawable, isClickable, isDrawingCacheEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFreezeDisabled, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isLayoutRequested, isPressed, isRootNamespace, isSelected, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onDetachedFromWindow, onDraw, onDrawBackground, onFinishInflate, onFocusChanged, onFreeze, onKeyDown, onKeyMultiple, onKeyUp, onMeasure, onPopulateContextMenu, onScrollChanged, onSizeChanged, onThaw, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowVisibilityChanged, performClick, performLongClick, populateContextMenu, post, postDelayed, postInvalidate, postInvalidateDelayed, press, refreshDrawableState, requestFocus, requestFocus, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, scheduleDrawable, scrollBy, scrollTo, setAnimation, setBackground, setBackground, setBackgroundColor, setBlockDescendantFocus, setBlockUnmatchedKeyUps, setClickable, setDrawingCacheEnabled, setDrawingCacheQuality, setEnabled, setFadingEdgeLength, setFocusable, setFocusableInTouchMode, setFocusType, setFrame, setFreezeDisabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setIsRootNamespace, setLayoutParams, setMeasuredDimension, setOnFocusChangeListener, setOnKeyListener, setOnLongClickListener, setOnPopulateContextMenuListener, setPreferredHeight, setPreferredWidth, setTag, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, startAnimation, thaw, unpress, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDraw
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.view.ViewParent
getParent, isLayoutRequested, populateContextMenu, requestLayout
 

Field Detail

mFirstPosition

protected int mFirstPosition

mSpecificTop

protected int mSpecificTop

mSyncPosition

protected int mSyncPosition

mSyncRowId

protected long mSyncRowId

mNeedSync

protected boolean mNeedSync

mSyncMode

protected int mSyncMode

SYNC_SELECTED_POSITION

protected static final int SYNC_SELECTED_POSITION
See Also:
Constant Field Values

SYNC_FIRST_POSITION

protected static final int SYNC_FIRST_POSITION
See Also:
Constant Field Values

SYNC_MAX_DURATION_MILLIS

protected static final int SYNC_MAX_DURATION_MILLIS
See Also:
Constant Field Values

mInLayout

protected boolean mInLayout

mOnItemSelectedListener

protected AdapterView.OnItemSelectedListener mOnItemSelectedListener

mOnItemClickListener

protected AdapterView.OnItemClickListener mOnItemClickListener

mOnItemLongClickListener

protected AdapterView.OnItemLongClickListener mOnItemLongClickListener

mDataChanged

protected boolean mDataChanged

mNextSelectedPosition

protected int mNextSelectedPosition

mNextSelectedRowId

protected long mNextSelectedRowId

mSelectedPosition

protected int mSelectedPosition

mSelectedRowId

protected long mSelectedRowId

mEmptyView

protected View mEmptyView

mItemCount

protected int mItemCount
Constructor Detail

AdapterView

public AdapterView(Context context)

AdapterView

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

AdapterView

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

setOnItemClickListener

public void setOnItemClickListener(AdapterView.OnItemClickListener l)

getOnItemClickListener

public final AdapterView.OnItemClickListener getOnItemClickListener()

performItemClick

public boolean performItemClick(View v,
                                int position,
                                long id)

setOnItemLongClickListener

public void setOnItemLongClickListener(AdapterView.OnItemLongClickListener l)

getOnItemLongClickListener

public final AdapterView.OnItemLongClickListener getOnItemLongClickListener()

setOnItemSelectedListener

public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener l)

getOnItemSelectedListener

public final AdapterView.OnItemSelectedListener getOnItemSelectedListener()

getAdapter

public abstract Adapter getAdapter()

setAdapter

public abstract void setAdapter(Adapter adapter)

addView

public void addView(View child)
Overrides:
addView in class ViewGroup

addView

public void addView(View child,
                    int index)
Overrides:
addView in class ViewGroup

addView

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

addView

public void addView(View child,
                    int index,
                    ViewGroup.LayoutParams params)
Overrides:
addView in class ViewGroup

removeView

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

removeViewAt

public void removeViewAt(int index)
Overrides:
removeViewAt in class ViewGroup

removeAllViews

public void removeAllViews()
Overrides:
removeAllViews in class ViewGroup

getSelectedItemPosition

public int getSelectedItemPosition()

getSelectedItemId

public long getSelectedItemId()

getSelectedView

public abstract View getSelectedView()

getSelectedItem

public Object getSelectedItem()

getCount

public int getCount()

getPositionForView

public int getPositionForView(View view)

setSelection

public abstract void setSelection(int i)

setEmptyView

public void setEmptyView(View emptyView)

getEmptyView

public View getEmptyView()

checkFocus

protected void checkFocus()

obtainItem

public Object obtainItem(int position)

obtainItemId

public long obtainItemId(int position)

setOnClickListener

public void setOnClickListener(View.OnClickListener l)
Overrides:
setOnClickListener in class View

dispatchFreeze

protected void dispatchFreeze(SparseArray container)
Overrides:
dispatchFreeze in class ViewGroup

dispatchThaw

protected void dispatchThaw(SparseArray container)
Overrides:
dispatchThaw in class ViewGroup

selectionChanged

protected void selectionChanged()

canAnimate

protected boolean canAnimate()
Overrides:
canAnimate in class ViewGroup

handleDataChanged

protected void handleDataChanged()

findSyncPosition

protected int findSyncPosition()

lookForSelectablePosition

protected int lookForSelectablePosition(int position,
                                        boolean lookDown)

setSelectedPositionInt

protected void setSelectedPositionInt(int position)

setNextSelectedPositionInt

protected void setNextSelectedPositionInt(int position)

rememberSyncState

protected void rememberSyncState()

Build m5-rc15

Please submit a feedback, bug or feature