Build 1.0_r1

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, AbsSpinner

public abstract class AdapterView
extends ViewGroup

An AdapterView is a view whose children are determined by an Adapter.

See ListView, GridView, Spinner and Gallery for commonly used subclasses of AdapterView.


Nested Class Summary
static class AdapterView.AdapterContextMenuInfo
          Extra menu information provided to the onCreateContextMenu(ContextMenu, View, ContextMenuInfo) callback when a context menu is brought up for this AdapterView.
static interface AdapterView.OnItemClickListener
          Interface definition for a callback to be invoked when an item in this AdapterView has been clicked.
static interface AdapterView.OnItemLongClickListener
          Interface definition for a callback to be invoked when an item in this view has been clicked and held.
static interface AdapterView.OnItemSelectedListener
          Interface definition for a callback to be invoked when an item in this view has been selected.
 
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.BaseSavedState, View.MeasureSpec, View.OnClickListener, View.OnCreateContextMenuListener, View.OnFocusChangeListener, View.OnKeyListener, View.OnLongClickListener, View.OnTouchListener
 
Field Summary
static int INVALID_POSITION
          Represents an invalid position.
static long INVALID_ROW_ID
          Represents an empty or invalid row id
Constant Value: -9223372036854775808 (0x8000000000000000)
static int ITEM_VIEW_TYPE_HEADER_OR_FOOTER
          The item view type returned by getItemViewType(int) when the item is a header or footer.
static int ITEM_VIEW_TYPE_IGNORE
          The item view type returned by getItemViewType(int) when the adapter does not want the item's view recycled.
 
Fields inherited from class android.view.ViewGroup
CLIP_TO_PADDING_MASK, FLAG_USE_CHILD_DRAWING_ORDER, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, 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, 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, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, INVISIBLE, KEEP_SCREEN_ON, NO_ID, 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, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET
 
Constructor Summary
AdapterView(Context context)
           
AdapterView(Context context, AttributeSet attrs)
           
AdapterView(Context context, AttributeSet attrs, int defStyle)
           
 
Method Summary
 void addView(View child)
          This method is not supported and throws an UnsupportedOperationException when called.
 void addView(View child, int index)
          This method is not supported and throws an UnsupportedOperationException when called.
 void addView(View child, int index, ViewGroup.LayoutParams params)
          This method is not supported and throws an UnsupportedOperationException when called.
 void addView(View child, ViewGroup.LayoutParams params)
          This method is not supported and throws an UnsupportedOperationException when called.
protected  boolean canAnimate()
          Indicates whether the view group has the ability to animate its children after the first layout.
protected  void dispatchRestoreInstanceState(SparseArray container)
          Override to prevent thawing of any views created by the adapter.
protected  void dispatchSaveInstanceState(SparseArray container)
          Override to prevent freezing of any views created by the adapter.
abstract  Adapter getAdapter()
          Returns the adapter currently associated with this widget.
 int getCount()
           
 View getEmptyView()
          When the current adapter is empty, the AdapterView can display a special view call the empty view.
 int getFirstVisiblePosition()
          Returns the position within the adapter's data set for the first item displayed on screen.
 Object getItemAtPosition(int position)
          Gets the data associated with the specified position in the list.
 long getItemIdAtPosition(int position)
           
 int getLastVisiblePosition()
          Returns the position within the adapter's data set for the last item displayed on screen.
 AdapterView.OnItemClickListener getOnItemClickListener()
           
 AdapterView.OnItemLongClickListener getOnItemLongClickListener()
           
 AdapterView.OnItemSelectedListener getOnItemSelectedListener()
           
 int getPositionForView(View view)
          Get the position within the adapter's data set for the view, where view is a an adapter item or a descendant of an adapter item.
 Object getSelectedItem()
           
 long getSelectedItemId()
           
 int getSelectedItemPosition()
          Return the position of the currently selected item within the adapter's data set
abstract  View getSelectedView()
           
protected  void onLayout(boolean changed, int left, int top, int right, int bottom)
          Called from layout when this view should assign a size and position to each of its children.
 boolean performItemClick(View view, int position, long id)
          Call the OnItemClickListener, if it is defined.
 void removeAllViews()
          This method is not supported and throws an UnsupportedOperationException when called.
 void removeView(View child)
          This method is not supported and throws an UnsupportedOperationException when called.
 void removeViewAt(int index)
          This method is not supported and throws an UnsupportedOperationException when called.
abstract  void setAdapter(Adapter adapter)
          Sets the adapter that provides the data and the views to represent the data in this widget.
 void setEmptyView(View emptyView)
          Sets the view to show if the adapter is empty
 void setFocusable(boolean focusable)
          Set whether this view can receive the focus.
 void setFocusableInTouchMode(boolean focusable)
          Set whether this view can receive focus while in touch mode.
 void setOnClickListener(View.OnClickListener l)
          Register a callback to be invoked when this view is clicked.
 void setOnItemClickListener(AdapterView.OnItemClickListener listener)
          Register a callback to be invoked when an item in this AdapterView has been clicked.
 void setOnItemLongClickListener(AdapterView.OnItemLongClickListener listener)
          Register a callback to be invoked when an item in this AdapterView has been clicked and held
 void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener)
          Register a callback to be invoked when an item in this AdapterView has been selected.
abstract  void setSelection(int i)
           
 
Methods inherited from class android.view.ViewGroup
addFocusables, addStatesFromChildren, addTouchables, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, checkLayoutParams, childDrawableStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchDraw, dispatchFreezeSelfOnly, dispatchKeyEvent, dispatchSetPressed, dispatchSetSelected, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, findFocus, fitSystemWindows, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getPersistentDrawingCache, hasFocus, hasFocusable, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawnWithCacheEnabled, measureChild, measureChildren, measureChildWithMargins, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onCreateDrawableState, onInterceptTouchEvent, onRequestFocusInDescendants, recomputeViewAttributes, removeAllViewsInLayout, removeDetachedView, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, showContextMenuForChild, startLayoutAnimation, updateViewLayout
 
Methods inherited from class android.view.View
bringToFront, buildDrawingCache, cancelLongPress, clearAnimation, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createContextMenu, destroyDrawingCache, dispatchKeyShortcutEvent, draw, finalize, findViewById, findViewWithTag, focusSearch, forceLayout, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getKeepScreenOn, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getNextFocusDownId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRightFadingEdgeStrength, getRootView, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getTag, getTop, getTopFadingEdgeStrength, getTouchables, getTouchDelegate, getVerticalFadingEdgeLength, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowToken, getWindowVisibility, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isClickable, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isInTouchMode, isLayoutRequested, isLongClickable, isPressed, isSaveEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onCreateContextMenu, onDetachedFromWindow, onDraw, onFinishInflate, onFocusChanged, onKeyDown, onKeyMultiple, onKeyShortcut, onKeyUp, onMeasure, onRestoreInstanceState, onSaveInstanceState, onScrollChanged, onSetAlpha, onSizeChanged, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowVisibilityChanged, performClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, setAnimation, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setKeepScreenOn, setLayoutParams, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnKeyListener, setOnLongClickListener, setOnTouchListener, setPressed, setSaveEnabled, setScrollBarStyle, setSelected, setSoundEffectsEnabled, setTag, setTouchDelegate, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, showContextMenu, startAnimation, 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
createContextMenu, getParent, isLayoutRequested, requestLayout
 

Field Detail

ITEM_VIEW_TYPE_IGNORE

public static final int ITEM_VIEW_TYPE_IGNORE
The item view type returned by getItemViewType(int) when the adapter does not want the item's view recycled.
Constant Value: -1 (0xffffffff)

See Also:
Constant Field Values

ITEM_VIEW_TYPE_HEADER_OR_FOOTER

public static final int ITEM_VIEW_TYPE_HEADER_OR_FOOTER
The item view type returned by getItemViewType(int) when the item is a header or footer.
Constant Value: -2 (0xfffffffe)

See Also:
Constant Field Values

INVALID_POSITION

public static final int INVALID_POSITION
Represents an invalid position. All valid positions are in the range 0 to 1 less than the number of items in the current adapter.
Constant Value: -1 (0xffffffff)

See Also:
Constant Field Values

INVALID_ROW_ID

public static final long INVALID_ROW_ID
Represents an empty or invalid row id
Constant Value: -9223372036854775808 (0x8000000000000000)

See Also:
Constant Field Values
Constructor Detail

AdapterView

public AdapterView(Context context)

AdapterView

public AdapterView(Context context,
                   AttributeSet attrs)

AdapterView

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

setOnItemClickListener

public void setOnItemClickListener(AdapterView.OnItemClickListener listener)
Register a callback to be invoked when an item in this AdapterView has been clicked.

Parameters:
listener - The callback that will be invoked.

getOnItemClickListener

public final AdapterView.OnItemClickListener getOnItemClickListener()
Returns:
The callback to be invoked with an item in this AdapterView has been clicked, or null id no callback has been set.

performItemClick

public boolean performItemClick(View view,
                                int position,
                                long id)
Call the OnItemClickListener, if it is defined.

Parameters:
view - The view within the AdapterView that was clicked.
position - The position of the view in the adapter.
id - The row id of the item that was clicked.
Returns:
True if there was an assigned OnItemClickListener that was called, false otherwise is returned.

setOnItemLongClickListener

public void setOnItemLongClickListener(AdapterView.OnItemLongClickListener listener)
Register a callback to be invoked when an item in this AdapterView has been clicked and held

Parameters:
listener - The callback that will run

getOnItemLongClickListener

public final AdapterView.OnItemLongClickListener getOnItemLongClickListener()
Returns:
The callback to be invoked with an item in this AdapterView has been clicked and held, or null id no callback as been set.

setOnItemSelectedListener

public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener)
Register a callback to be invoked when an item in this AdapterView has been selected.

Parameters:
listener - The callback that will run

getOnItemSelectedListener

public final AdapterView.OnItemSelectedListener getOnItemSelectedListener()

getAdapter

public abstract Adapter getAdapter()
Returns the adapter currently associated with this widget.

Returns:
The adapter used to provide this view's content.

setAdapter

public abstract void setAdapter(Adapter adapter)
Sets the adapter that provides the data and the views to represent the data in this widget.

Parameters:
adapter - The adapter to use to create this view's content.

addView

public void addView(View child)
This method is not supported and throws an UnsupportedOperationException when called.

Overrides:
addView in class ViewGroup
Parameters:
child - Ignored.
Throws:
UnsupportedOperationException - Every time this method is invoked.
See Also:
generateDefaultLayoutParams()

addView

public void addView(View child,
                    int index)
This method is not supported and throws an UnsupportedOperationException when called.

Overrides:
addView in class ViewGroup
Parameters:
child - Ignored.
index - Ignored.
Throws:
UnsupportedOperationException - Every time this method is invoked.
See Also:
generateDefaultLayoutParams()

addView

public void addView(View child,
                    ViewGroup.LayoutParams params)
This method is not supported and throws an UnsupportedOperationException when called.

Specified by:
addView in interface ViewManager
Overrides:
addView in class ViewGroup
Parameters:
child - Ignored.
params - Ignored.
Throws:
UnsupportedOperationException - Every time this method is invoked.

addView

public void addView(View child,
                    int index,
                    ViewGroup.LayoutParams params)
This method is not supported and throws an UnsupportedOperationException when called.

Overrides:
addView in class ViewGroup
Parameters:
child - Ignored.
index - Ignored.
params - Ignored.
Throws:
UnsupportedOperationException - Every time this method is invoked.

removeView

public void removeView(View child)
This method is not supported and throws an UnsupportedOperationException when called.

Specified by:
removeView in interface ViewManager
Overrides:
removeView in class ViewGroup
Parameters:
child - Ignored.
Throws:
UnsupportedOperationException - Every time this method is invoked.

removeViewAt

public void removeViewAt(int index)
This method is not supported and throws an UnsupportedOperationException when called.

Overrides:
removeViewAt in class ViewGroup
Parameters:
index - Ignored.
Throws:
UnsupportedOperationException - Every time this method is invoked.

removeAllViews

public void removeAllViews()
This method is not supported and throws an UnsupportedOperationException when called.

Overrides:
removeAllViews in class ViewGroup
Throws:
UnsupportedOperationException - Every time this method is invoked.

onLayout

protected void onLayout(boolean changed,
                        int left,
                        int top,
                        int right,
                        int bottom)
Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their their children.

Specified by:
onLayout in class ViewGroup
Parameters:
changed - This is a new size or position for this view
left - Left position, relative to parent
top - Top position, relative to parent
right - Right position, relative to parent
bottom - Bottom position, relative to parent

getSelectedItemPosition

public int getSelectedItemPosition()
Return the position of the currently selected item within the adapter's data set

Returns:
int Position (starting at 0), or INVALID_POSITION if there is nothing selected.

getSelectedItemId

public long getSelectedItemId()
Returns:
The id corresponding to the currently selected item, or INVALID_ROW_ID if nothing is selected.

getSelectedView

public abstract View getSelectedView()
Returns:
The view corresponding to the currently selected item, or null if nothing is selected

getSelectedItem

public Object getSelectedItem()
Returns:
The data corresponding to the currently selected item, or null if there is nothing selected.

getCount

public int getCount()
Returns:
The number of items owned by the Adapter associated with this AdapterView. (This is the number of data items, which may be larger than the number of visible view.)

getPositionForView

public int getPositionForView(View view)
Get the position within the adapter's data set for the view, where view is a an adapter item or a descendant of an adapter item.

Parameters:
view - an adapter item, or a descendant of an adapter item. This must be visible in this AdapterView at the time of the call.
Returns:
the position within the adapter's data set of the view, or INVALID_POSITION if the view does not correspond to a list item (or it is not currently visible).

getFirstVisiblePosition

public int getFirstVisiblePosition()
Returns the position within the adapter's data set for the first item displayed on screen.

Returns:
The position within the adapter's data set

getLastVisiblePosition

public int getLastVisiblePosition()
Returns the position within the adapter's data set for the last item displayed on screen.

Returns:
The position within the adapter's data set

setSelection

public abstract void setSelection(int i)

setEmptyView

public void setEmptyView(View emptyView)
Sets the view to show if the adapter is empty


getEmptyView

public View getEmptyView()
When the current adapter is empty, the AdapterView can display a special view call the empty view. The empty view is used to provide feedback to the user that no data is available in this AdapterView.

Returns:
The view to show if the adapter is empty.

setFocusable

public void setFocusable(boolean focusable)
Set whether this view can receive the focus. Setting this to false will also ensure that this view is not focusable in touch mode.

Overrides:
setFocusable in class View
Parameters:
focusable - If true, this view can receive the focus.
See Also:
setFocusableInTouchMode(boolean)

setFocusableInTouchMode

public void setFocusableInTouchMode(boolean focusable)
Set whether this view can receive focus while in touch mode. Setting this to true will also ensure that this view is focusable.

Overrides:
setFocusableInTouchMode in class View
Parameters:
focusable - If true, this view can receive the focus while in touch mode.
See Also:
setFocusable(boolean)

getItemAtPosition

public Object getItemAtPosition(int position)
Gets the data associated with the specified position in the list.

Parameters:
position - Which data to get
Returns:
The data associated with the specified position in the list

getItemIdAtPosition

public long getItemIdAtPosition(int position)

setOnClickListener

public void setOnClickListener(View.OnClickListener l)
Register a callback to be invoked when this view is clicked. If this view is not clickable, it becomes clickable.

Overrides:
setOnClickListener in class View
Parameters:
l - The callback that will run
See Also:
setClickable(boolean)

dispatchSaveInstanceState

protected void dispatchSaveInstanceState(SparseArray container)
Override to prevent freezing of any views created by the adapter.

Overrides:
dispatchSaveInstanceState in class ViewGroup
Parameters:
container - The SparseArray in which to save the view's state.
See Also:
dispatchRestoreInstanceState(SparseArray), saveHierarchyState(SparseArray), onSaveInstanceState()

dispatchRestoreInstanceState

protected void dispatchRestoreInstanceState(SparseArray container)
Override to prevent thawing of any views created by the adapter.

Overrides:
dispatchRestoreInstanceState in class ViewGroup
Parameters:
container - The SparseArray which holds previously saved state.
See Also:
dispatchSaveInstanceState(SparseArray), restoreHierarchyState(SparseArray), onRestoreInstanceState(Parcelable)

canAnimate

protected boolean canAnimate()
Indicates whether the view group has the ability to animate its children after the first layout.

Overrides:
canAnimate in class ViewGroup
Returns:
true if the children can be animated, false otherwise

Build 1.0_r1

Please submit a feedback, bug or feature