public abstract class AbsHListView extends AdapterView<android.widget.ListAdapter> implements android.view.ViewTreeObserver.OnGlobalLayoutListener, android.view.ViewTreeObserver.OnTouchModeChangeListener
| Modifier and Type | Class and Description |
|---|---|
class |
AbsHListView.AdapterDataSetObserver |
static class |
AbsHListView.LayoutParams
AbsListView extends LayoutParams to provide a place to hold the view type.
|
static interface |
AbsHListView.OnScrollListener
Interface definition for a callback to be invoked when the list or grid has been scrolled.
|
class |
AbsHListView.PositionScroller |
class |
AbsHListView.RecycleBin
The RecycleBin facilitates reuse of views across layouts.
|
static interface |
AbsHListView.RecyclerListener
A RecyclerListener is used to receive a notification whenever a View is placed inside the RecycleBin's scrap heap.
|
static interface |
AbsHListView.SelectionBoundsAdjuster
The top-level view of a list item can implement this interface to allow itself to modify the bounds of the selection shown for
that item.
|
AdapterView.AdapterContextMenuInfo, AdapterView.OnItemClickListener, AdapterView.OnItemLongClickListener, AdapterView.OnItemSelectedListenerandroid.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListenerandroid.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener| Modifier and Type | Field and Description |
|---|---|
static int |
LAYOUT_FORCE_LEFT
Show the first item
|
static int |
LAYOUT_FORCE_RIGHT
Show the last item
|
static int |
LAYOUT_MOVE_SELECTION
Layout as a result of using the navigation keys
|
static int |
LAYOUT_NORMAL
Regular layout - usually an unsolicited layout from the view system
|
static int |
LAYOUT_SET_SELECTION
Force the selected item to be on somewhere on the screen
|
static int |
LAYOUT_SPECIFIC
Make a mSelectedItem appear in a specific location and build the rest of the views from there.
|
static int |
LAYOUT_SYNC
Layout to sync as a result of a data change.
|
protected android.widget.ListAdapter |
mAdapter
The adapter containing the data to be displayed by this view
|
protected boolean |
mCachingActive |
protected boolean |
mCachingStarted
When the view is scrolling, this flag is set to true to indicate subclasses that the drawing cache was enabled on the children
|
protected |
mCheckStates
Running state of which positions are currently checked
|
java.lang.Object |
mChoiceActionMode
Controls CHOICE_MODE_MULTIPLE_MODAL.
|
protected int |
mChoiceMode
Controls if/how the user may choose/check items in the list
|
protected AbsHListView.AdapterDataSetObserver |
mDataSetObserver
Should be used by subclasses to listen to changes in the dataset
|
protected int |
mHeightMeasureSpec
Subclasses must retain their measure spec from onMeasure() into this member
|
protected boolean |
mIsAttached
Track if we are currently attached to a window.
|
protected boolean[] |
mIsScrap |
protected int |
mLayoutMode
Controls how the next layout will happen
|
protected android.graphics.Rect |
mListPadding
This view's padding
|
protected int |
mMotionPosition
The position of the view that received the down motion event
|
protected int |
mOverscrollMax
Maximum distance to record overscroll
|
protected java.lang.Runnable |
mPositionScrollAfterLayout |
protected AbsHListView.PositionScroller |
mPositionScroller
Handles scrolling between positions within the list.
|
protected AbsHListView.RecycleBin |
mRecycler
The data set used to store unused views that should be reused during the next layout to avoid creating new ones
|
protected int |
mResurrectToPosition
The position to resurrect the selected position to.
|
protected int |
mSelectedLeft
The offset in pixels form the top of the AdapterView to the top of the currently selected view.
|
protected android.graphics.Rect |
mSelectorRect
Defines the selector's location and dimension at drawing time
|
protected boolean |
mStackFromRight
Indicates whether the list is stacked from the bottom edge or the top edge.
|
protected int |
mTouchMode
One of TOUCH_MODE_REST, TOUCH_MODE_DOWN, TOUCH_MODE_TAP, TOUCH_MODE_SCROLL, or TOUCH_MODE_DONE_WAITING
|
protected static int |
OVERSCROLL_LIMIT_DIVISOR
Content height divided by this is the overscroll limit.
|
static int[] |
STATESET_NOTHING |
static int |
TOUCH_MODE_DONE_WAITING
Indicates we have waited for everything we can wait for, but the user's finger is still down
|
static int |
TOUCH_MODE_DOWN
Indicates we just received the touch event and we are waiting to see if the it is a tap or a scroll gesture.
|
static int |
TOUCH_MODE_FLING
Indicates the view is in the process of being flung
|
static int |
TOUCH_MODE_OVERFLING
Indicates the view is being flung outside of normal content bounds and will spring back.
|
static int |
TOUCH_MODE_OVERSCROLL
Indicates the touch gesture is an overscroll - a scroll beyond the beginning or end.
|
static int |
TOUCH_MODE_REST
Indicates that we are not in the middle of a touch gesture
|
static int |
TOUCH_MODE_SCROLL
Indicates the touch gesture is a scroll
|
static int |
TOUCH_MODE_TAP
Indicates the touch has been recognized as a tap and we are now waiting to see if the touch is a longpress
|
static int |
TRANSCRIPT_MODE_ALWAYS_SCROLL
The list will automatically scroll to the bottom, no matter what items are currently visible.
|
static int |
TRANSCRIPT_MODE_DISABLED
Disables the transcript mode.
|
static int |
TRANSCRIPT_MODE_NORMAL
The list will automatically scroll to the bottom when a data set change notification is received and only if the last item is
already visible on screen.
|
INVALID_COL_ID, INVALID_POSITION, ITEM_VIEW_TYPE_HEADER_OR_FOOTER, ITEM_VIEW_TYPE_IGNORE, LOG_ENABLED, LOG_TAG, mBlockLayoutRequests, mDataChanged, mFirstPosition, mInLayout, mItemCount, mNeedSync, mNextSelectedColId, mNextSelectedPosition, mOldItemCount, mOldSelectedColId, mOldSelectedPosition, mSelectedColId, mSelectedPosition, mSpecificLeft, mSyncColId, mSyncPosition, mSyncWidthCLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHEACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, 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, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, 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_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, 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_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y| Constructor and Description |
|---|
AbsHListView(android.content.Context context) |
AbsHListView(android.content.Context context,
android.util.AttributeSet attrs) |
AbsHListView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTouchables(java.util.ArrayList<android.view.View> views) |
boolean |
checkInputConnectionProxy(android.view.View view)
For filtering we proxy an input connection to an internal text editor, and this allows the proxying to happen.
|
protected boolean |
checkLayoutParams(android.view.ViewGroup.LayoutParams p) |
void |
clearChoices()
Clear any choices previously set
|
protected int |
computeHorizontalScrollExtent() |
protected int |
computeHorizontalScrollOffset() |
protected int |
computeHorizontalScrollRange() |
protected void |
dispatchDraw(android.graphics.Canvas canvas) |
protected void |
dispatchSetPressed(boolean pressed) |
void |
draw(android.graphics.Canvas canvas)
TODO: to be implemented
|
protected void |
drawableStateChanged() |
protected abstract void |
fillGap(boolean after)
Fills the gap left open by a touch-scroll.
|
protected int |
findClosestMotionCol(int x)
Find the col closest to x.
|
protected abstract int |
findMotionCol(int x)
Find the col closest to x.
|
protected android.view.ViewGroup.LayoutParams |
generateDefaultLayoutParams() |
AbsHListView.LayoutParams |
generateLayoutParams(android.util.AttributeSet attrs) |
protected android.view.ViewGroup.LayoutParams |
generateLayoutParams(android.view.ViewGroup.LayoutParams p) |
int |
getCacheColorHint()
When set to a non-zero value, the cache color hint indicates that this list is always drawn on top of a solid, single-color,
opaque background
|
int |
getCheckedItemCount()
Returns the number of items currently selected.
|
long[] |
getCheckedItemIds()
Returns the set of checked items ids.
|
int |
getCheckedItemPosition()
Returns the currently checked item.
|
|
getCheckedItemPositions()
Returns the set of checked items in the list.
|
int |
getChoiceMode() |
protected android.view.ContextMenu.ContextMenuInfo |
getContextMenuInfo() |
static int |
getDistance(android.graphics.Rect source,
android.graphics.Rect dest,
int direction)
What is the distance between the source and destination rectangles given the direction of focus navigation between them? The
direction basically helps figure out more quickly what is self evident by the relationship between the rects...
|
void |
getFocusedRect(android.graphics.Rect r) |
protected int |
getFooterViewsCount()
Returns the number of footer views in the list.
|
protected int |
getHeaderViewsCount()
Returns the number of header views in the list.
|
protected int |
getHorizontalScrollbarHeight() |
protected float |
getHorizontalScrollFactor()
Gets a scale factor that determines the distance the view should scroll vertically in response to
MotionEvent.ACTION_SCROLL. |
protected float |
getLeftFadingEdgeStrength() |
int |
getListPaddingBottom()
List padding is the maximum of the normal view's padding and the padding of the selector.
|
int |
getListPaddingLeft()
List padding is the maximum of the normal view's padding and the padding of the selector.
|
int |
getListPaddingRight()
List padding is the maximum of the normal view's padding and the padding of the selector.
|
int |
getListPaddingTop()
List padding is the maximum of the normal view's padding and the padding of the selector.
|
protected float |
getRightFadingEdgeStrength() |
android.view.View |
getSelectedView() |
android.graphics.drawable.Drawable |
getSelector()
Returns the selector
Drawable that is used to draw the selection in the list. |
int |
getSolidColor() |
int |
getTranscriptMode()
Returns the current transcript mode.
|
protected void |
handleDataChanged() |
protected void |
hideSelector() |
protected void |
invalidateParentIfNeeded() |
void |
invalidateViews()
Causes all the views to be rebuilt and redrawn.
|
protected void |
invokeOnItemScrollListener()
Notify our scroll listener (if there is one) of a change in scroll state
|
boolean |
isItemChecked(int position)
Returns the checked state of the specified position.
|
boolean |
isScrollingCacheEnabled()
Indicates whether the children's drawing cache is used during a scroll.
|
boolean |
isSmoothScrollbarEnabled()
Returns the current state of the fast scroll feature.
|
boolean |
isStackFromRight()
Indicates whether the content of this view is pinned to, or stacked from, the bottom edge.
|
void |
jumpDrawablesToCurrentState() |
protected void |
keyPressed()
Sets the selector state to "pressed" and posts a CheckForKeyLongPress to see if this is a long press.
|
protected void |
layoutChildren()
Subclasses must override this method to layout their children.
|
protected android.view.View |
obtainView(int position,
boolean[] isScrap)
Get a view and have it show the data associated with the specified position.
|
void |
offsetChildrenLeftAndRight(int offset)
Why the hell Google guys set public methods hidden??? fuck you
|
protected void |
onAttachedToWindow() |
protected int[] |
onCreateDrawableState(int extraSpace) |
android.view.inputmethod.InputConnection |
onCreateInputConnection(android.view.inputmethod.EditorInfo outAttrs)
Return an InputConnection for editing of the filter text.
|
protected void |
onDetachedFromWindow() |
protected void |
onFocusChanged(boolean gainFocus,
int direction,
android.graphics.Rect previouslyFocusedRect) |
boolean |
onGenericMotionEvent(android.view.MotionEvent event) |
void |
onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent event) |
void |
onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo info) |
boolean |
onInterceptTouchEvent(android.view.MotionEvent ev) |
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event) |
boolean |
onKeyUp(int keyCode,
android.view.KeyEvent event) |
protected void |
onLayout(boolean changed,
int l,
int t,
int r,
int b)
Subclasses should NOT override this method but
layoutChildren() instead. |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY) |
void |
onRestoreInstanceState(android.os.Parcelable state) |
android.os.Parcelable |
onSaveInstanceState() |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
boolean |
onTouchEvent(android.view.MotionEvent ev) |
void |
onTouchModeChanged(boolean isInTouchMode) |
void |
onWindowFocusChanged(boolean hasWindowFocus) |
boolean |
performAccessibilityAction(int action,
android.os.Bundle arguments) |
protected boolean |
performButtonActionOnTouchDown(android.view.MotionEvent event)
Performs button-related actions during a touch down event.
|
boolean |
performItemClick(android.view.View view,
int position,
long id)
Call the OnItemClickListener, if it is defined.
|
long |
pointToColId(int x,
int y)
Maps a point to a the colId of the item which intersects that point.
|
int |
pointToPosition(int x,
int y)
Maps a point to a position in the list.
|
protected void |
positionSelector(int position,
android.view.View sel) |
void |
reclaimViews(java.util.List<android.view.View> views)
Move all views (excluding headers and footers) held by this AbsListView into the supplied List.
|
protected int |
reconcileSelectedPosition() |
void |
requestDisallowInterceptTouchEvent(boolean disallowIntercept) |
void |
requestLayout() |
protected void |
resetList()
The list is empty.
|
protected boolean |
resurrectSelectionIfNeeded()
If there is a selection returns false.
|
void |
sendAccessibilityEvent(int eventType) |
void |
setAdapter(android.widget.ListAdapter adapter)
Sets the adapter that provides the data and the views to represent the data in this widget.
|
void |
setCacheColorHint(int color)
When set to a non-zero value, the cache color hint indicates that this list is always drawn on top of a solid, single-color,
opaque background.
|
void |
setChoiceMode(int choiceMode)
Defines the choice behavior for the List.
|
void |
setDrawSelectorOnTop(boolean onTop)
Controls whether the selection highlight drawable should be drawn on top of the item or behind it.
|
void |
setFriction(float friction)
The amount of friction applied to flings.
|
void |
setItemChecked(int position,
boolean value)
Sets the checked state of the specified position.
|
void |
setMultiChoiceModeListener(MultiChoiceModeListener listener)
Set a
MultiChoiceModeListener that will manage the lifecycle of the selection ActionMode. |
void |
setOnScrollListener(AbsHListView.OnScrollListener l)
Set the listener that will receive notifications every time the list scrolls.
|
void |
setOverScrollEffectPadding(int topPadding,
int bottomPadding) |
void |
setOverScrollMode(int mode) |
void |
setRecyclerListener(AbsHListView.RecyclerListener listener)
Sets the recycler listener to be notified whenever a View is set aside in the recycler for later reuse.
|
void |
setScrollIndicators(android.view.View left,
android.view.View right) |
void |
setScrollingCacheEnabled(boolean enabled)
Enables or disables the children's drawing cache during a scroll.
|
abstract void |
setSelectionInt(int position)
Makes the item at the supplied position selected.
|
void |
setSelector(android.graphics.drawable.Drawable sel) |
void |
setSelector(int resID)
Set a Drawable that should be used to highlight the currently selected item.
|
void |
setSmoothScrollbarEnabled(boolean enabled)
When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed based on the number of visible
pixels in the visible items.
|
void |
setStackFromRight(boolean stackFromRight)
When stack from bottom is set to true, the list fills its content starting from the bottom of the view.
|
void |
setTranscriptMode(int mode)
Puts the list or grid into transcript mode.
|
void |
setVelocityScale(float scale)
Sets a scale factor for the fling velocity.
|
protected void |
setVisibleRangeHint(int start,
int end)
Hints the RemoteViewsAdapter, if it exists, about which views are currently being displayed by the AbsListView.
|
protected boolean |
shouldShowSelector()
Indicates whether this view is in a state where the selector should be drawn.
|
boolean |
showContextMenu(float x,
float y,
int metaState) |
boolean |
showContextMenuForChild(android.view.View originalView) |
void |
smoothScrollBy(int distance,
int duration)
Smoothly scroll by distance pixels over duration milliseconds.
|
void |
smoothScrollBy(int distance,
int duration,
boolean linear) |
protected void |
smoothScrollByOffset(int position)
Allows RemoteViews to scroll relatively to a position.
|
void |
smoothScrollToPosition(int position)
Smoothly scroll to the specified adapter position.
|
void |
smoothScrollToPosition(int position,
int boundPosition)
Smoothly scroll to the specified adapter position.
|
void |
smoothScrollToPositionFromLeft(int position,
int offset)
Smoothly scroll to the specified adapter position.
|
void |
smoothScrollToPositionFromLeft(int position,
int offset,
int duration)
Smoothly scroll to the specified adapter position.
|
protected void |
updateScrollIndicators() |
boolean |
verifyDrawable(android.graphics.drawable.Drawable dr) |
addView, addView, addView, addView, canAnimate, checkFocus, checkSelectionChanged, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, getAdapter, getCount, getEmptyView, getFirstVisiblePosition, getItemAtPosition, getItemIdAtPosition, getLastVisiblePosition, getOnItemClickListener, getOnItemLongClickListener, getOnItemSelectedListener, getPositionForView, getSelectedItem, getSelectedItemId, getSelectedItemPosition, lookForSelectablePosition, onRequestSendAccessibilityEvent, rememberSyncState, removeAllViews, removeView, removeViewAt, setEmptyView, setFocusable, setFocusableInTouchMode, setNextSelectedPositionInt, setOnClickListener, setOnItemClickListener, setOnItemLongClickListener, setOnItemSelectedListener, setSelectedPositionInt, setSelectionaddChildrenForAccessibility, addFocusables, addStatesFromChildren, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchSetActivated, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawChild, endViewTransition, findFocus, findViewsWithText, fitSystemWindows, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getOverlay, getPersistentDrawingCache, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onInterceptHoverEvent, onRequestFocusInDescendants, recomputeViewAttributes, removeAllViewsInLayout, removeDetachedView, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, shouldDelayChildPressedState, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayoutaddFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, clearAnimation, combineMeasuredStates, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, findViewById, findViewWithTag, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getContentDescription, getContext, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isAttachedToWindow, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onDisplayHint, onDragEvent, onDraw, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onHoverChanged, onHoverEvent, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onPopulateAccessibilityEvent, onRtlPropertiesChanged, onScreenStateChanged, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTrackballEvent, onVisibilityChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setClipBounds, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, toString, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonGlobalLayoutcanResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindowspublic static final int TRANSCRIPT_MODE_DISABLED
setTranscriptMode(int),
Constant Field Valuespublic static final int TRANSCRIPT_MODE_NORMAL
setTranscriptMode(int),
Constant Field Valuespublic static final int TRANSCRIPT_MODE_ALWAYS_SCROLL
setTranscriptMode(int),
Constant Field Valuespublic static final int TOUCH_MODE_REST
public static final int TOUCH_MODE_DOWN
public static final int TOUCH_MODE_TAP
public static final int TOUCH_MODE_DONE_WAITING
public static final int TOUCH_MODE_SCROLL
public static final int TOUCH_MODE_FLING
public static final int TOUCH_MODE_OVERSCROLL
public static final int TOUCH_MODE_OVERFLING
public static final int LAYOUT_NORMAL
public static final int LAYOUT_FORCE_LEFT
public static final int LAYOUT_SET_SELECTION
public static final int LAYOUT_FORCE_RIGHT
public static final int LAYOUT_SPECIFIC
public static final int LAYOUT_SYNC
public static final int LAYOUT_MOVE_SELECTION
protected int mChoiceMode
public java.lang.Object mChoiceActionMode
protectedmCheckStates
protected int mLayoutMode
protected AbsHListView.AdapterDataSetObserver mDataSetObserver
protected android.widget.ListAdapter mAdapter
protected android.graphics.Rect mSelectorRect
protected final AbsHListView.RecycleBin mRecycler
protected android.graphics.Rect mListPadding
protected int mHeightMeasureSpec
protected boolean mCachingStarted
protected boolean mCachingActive
protected int mMotionPosition
protected int mTouchMode
protected AbsHListView.PositionScroller mPositionScroller
protected int mSelectedLeft
protected boolean mStackFromRight
protected int mResurrectToPosition
protected int mOverscrollMax
protected static final int OVERSCROLL_LIMIT_DIVISOR
protected java.lang.Runnable mPositionScrollAfterLayout
protected final boolean[] mIsScrap
protected boolean mIsAttached
public static final int[] STATESET_NOTHING
public AbsHListView(android.content.Context context)
public AbsHListView(android.content.Context context,
android.util.AttributeSet attrs)
public AbsHListView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public void setOverScrollMode(int mode)
setOverScrollMode in class android.view.Viewpublic void setAdapter(android.widget.ListAdapter adapter)
setAdapter in class AdapterView<android.widget.ListAdapter>adapter - The adapter to use to create this view's content.public int getCheckedItemCount()
#CHOICE_MODE_NONE
(default).
To determine the specific items that are currently selected, use one of the getChecked* methods.
getCheckedItemPosition(),
getCheckedItemPositions(),
getCheckedItemIds()public boolean isItemChecked(int position)
#CHOICE_MODE_SINGLE or #CHOICE_MODE_MULTIPLE.position - The item whose checked state to returnfalse if choice mode is invalidsetChoiceMode(int)public int getCheckedItemPosition()
#CHOICE_MODE_SINGLE.AdapterView.INVALID_POSITION if nothing is selectedsetChoiceMode(int)publicgetCheckedItemPositions()
#CHOICE_MODE_NONE.null if the choice mode is set to #CHOICE_MODE_NONE.public long[] getCheckedItemIds()
#CHOICE_MODE_NONE and the adapter has stable IDs. (Adapter.hasStableIds() == true)public void clearChoices()
public void setItemChecked(int position,
boolean value)
#CHOICE_MODE_SINGLE or #CHOICE_MODE_MULTIPLE.position - The item whose checked state is to be checkedvalue - The new checked state for the itempublic boolean performItemClick(android.view.View view,
int position,
long id)
AdapterViewperformItemClick in class AdapterView<android.widget.ListAdapter>view - The view within the AdapterView that was clicked.position - The position of the view in the adapter.id - The col id of the item that was clicked.public int getChoiceMode()
setChoiceMode(int)public void setChoiceMode(int choiceMode)
#CHOICE_MODE_NONE). By
setting the choiceMode to #CHOICE_MODE_SINGLE, the List allows up to one item to be in a chosen state. By setting the
choiceMode to #CHOICE_MODE_MULTIPLE, the list allows any number of items to be chosen.choiceMode - One of #CHOICE_MODE_NONE, #CHOICE_MODE_SINGLE, or #CHOICE_MODE_MULTIPLEpublic void setMultiChoiceModeListener(MultiChoiceModeListener listener)
MultiChoiceModeListener that will manage the lifecycle of the selection ActionMode. Only used when the
choice mode is set to #CHOICE_MODE_MULTIPLE_MODAL.listener - Listener that will manage the selection modesetChoiceMode(int)protected int getHorizontalScrollbarHeight()
getHorizontalScrollbarHeight in class android.view.Viewpublic void setSmoothScrollbarEnabled(boolean enabled)
enabled - Whether or not to enable smooth scrollbar.setSmoothScrollbarEnabled(boolean)public boolean isSmoothScrollbarEnabled()
setSmoothScrollbarEnabled(boolean)public void setOnScrollListener(AbsHListView.OnScrollListener l)
l - the scroll listenerprotected void invokeOnItemScrollListener()
public void sendAccessibilityEvent(int eventType)
sendAccessibilityEvent in interface android.view.accessibility.AccessibilityEventSourcesendAccessibilityEvent in class android.view.Viewpublic void onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent event)
onInitializeAccessibilityEvent in class AdapterView<android.widget.ListAdapter>public void onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo info)
onInitializeAccessibilityNodeInfo in class AdapterView<android.widget.ListAdapter>public boolean performAccessibilityAction(int action,
android.os.Bundle arguments)
performAccessibilityAction in class android.view.Viewpublic boolean isScrollingCacheEnabled()
setScrollingCacheEnabled(boolean),
View.setDrawingCacheEnabled(boolean)public void setScrollingCacheEnabled(boolean enabled)
ViewGroup.setChildrenDrawingCacheEnabled(boolean).enabled - true to enable the scroll cache, false otherwiseisScrollingCacheEnabled(),
View.setDrawingCacheEnabled(boolean)public void getFocusedRect(android.graphics.Rect r)
getFocusedRect in class android.view.Viewpublic boolean isStackFromRight()
public void setStackFromRight(boolean stackFromRight)
stackFromBottom - true to pin the view's content to the bottom edge, false to pin the view's content to the top edgepublic android.os.Parcelable onSaveInstanceState()
onSaveInstanceState in class android.view.Viewpublic void onRestoreInstanceState(android.os.Parcelable state)
onRestoreInstanceState in class android.view.Viewprotected void onFocusChanged(boolean gainFocus,
int direction,
android.graphics.Rect previouslyFocusedRect)
onFocusChanged in class android.view.Viewpublic void requestLayout()
requestLayout in interface android.view.ViewParentrequestLayout in class android.view.Viewprotected void resetList()
protected int computeHorizontalScrollExtent()
computeHorizontalScrollExtent in class android.view.Viewprotected int computeHorizontalScrollOffset()
computeHorizontalScrollOffset in class android.view.Viewprotected int computeHorizontalScrollRange()
computeHorizontalScrollRange in class android.view.Viewprotected float getLeftFadingEdgeStrength()
getLeftFadingEdgeStrength in class android.view.Viewprotected float getRightFadingEdgeStrength()
getRightFadingEdgeStrength in class android.view.Viewprotected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
onMeasure in class android.view.Viewprotected void onLayout(boolean changed,
int l,
int t,
int r,
int b)
layoutChildren() instead.onLayout in class AdapterView<android.widget.ListAdapter>protected void layoutChildren()
protected void updateScrollIndicators()
public android.view.View getSelectedView()
getSelectedView in class AdapterView<android.widget.ListAdapter>public int getListPaddingTop()
View.getPaddingTop(),
getSelector()public int getListPaddingBottom()
View.getPaddingBottom(),
getSelector()public int getListPaddingLeft()
View.getPaddingLeft(),
getSelector()public int getListPaddingRight()
View.getPaddingRight(),
getSelector()protected android.view.View obtainView(int position,
boolean[] isScrap)
position - The position to displayisScrap - Array of at least 1 boolean, the first entry will become true if the returned view was taken from the scrap heap,
false if otherwise.protected void positionSelector(int position,
android.view.View sel)
protected void dispatchDraw(android.graphics.Canvas canvas)
dispatchDraw in class android.view.ViewGroupprotected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
onSizeChanged in class android.view.Viewprotected boolean shouldShowSelector()
public void setDrawSelectorOnTop(boolean onTop)
onTop - If true, the selector will be drawn on the item it is highlighting. The default is false.public void setSelector(int resID)
resID - A Drawable resource to use as the selection highlight.public void setSelector(android.graphics.drawable.Drawable sel)
public android.graphics.drawable.Drawable getSelector()
Drawable that is used to draw the selection in the list.protected void keyPressed()
public void setScrollIndicators(android.view.View left,
android.view.View right)
protected void drawableStateChanged()
drawableStateChanged in class android.view.ViewGroupprotected int[] onCreateDrawableState(int extraSpace)
onCreateDrawableState in class android.view.ViewGrouppublic boolean verifyDrawable(android.graphics.drawable.Drawable dr)
verifyDrawable in class android.view.Viewpublic void jumpDrawablesToCurrentState()
jumpDrawablesToCurrentState in class android.view.ViewGroupprotected void onAttachedToWindow()
onAttachedToWindow in class android.view.ViewGroupprotected void onDetachedFromWindow()
onDetachedFromWindow in class AdapterView<android.widget.ListAdapter>public void onWindowFocusChanged(boolean hasWindowFocus)
onWindowFocusChanged in class android.view.Viewprotected android.view.ContextMenu.ContextMenuInfo getContextMenuInfo()
getContextMenuInfo in class android.view.Viewpublic boolean showContextMenu(float x,
float y,
int metaState)
public boolean showContextMenuForChild(android.view.View originalView)
showContextMenuForChild in interface android.view.ViewParentshowContextMenuForChild in class android.view.ViewGrouppublic boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
onKeyDown in interface android.view.KeyEvent.CallbackonKeyDown in class android.view.Viewpublic boolean onKeyUp(int keyCode,
android.view.KeyEvent event)
onKeyUp in interface android.view.KeyEvent.CallbackonKeyUp in class android.view.Viewprotected void dispatchSetPressed(boolean pressed)
dispatchSetPressed in class android.view.ViewGrouppublic int pointToPosition(int x,
int y)
x - X in local coordinatey - Y in local coordinateAdapterView.INVALID_POSITION if the point does not
intersect an item.public long pointToColId(int x,
int y)
x - X in local coordinatey - Y in local coordinateAdapterView.INVALID_COL_ID if the point does not intersect
an item.protected void invalidateParentIfNeeded()
public void onTouchModeChanged(boolean isInTouchMode)
onTouchModeChanged in interface android.view.ViewTreeObserver.OnTouchModeChangeListenerprotected boolean performButtonActionOnTouchDown(android.view.MotionEvent event)
event - The event.public boolean onTouchEvent(android.view.MotionEvent ev)
onTouchEvent in class android.view.Viewprotected void onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY)
onOverScrolled in class android.view.Viewpublic boolean onGenericMotionEvent(android.view.MotionEvent event)
onGenericMotionEvent in class android.view.Viewprotected float getHorizontalScrollFactor()
MotionEvent.ACTION_SCROLL.public void draw(android.graphics.Canvas canvas)
draw in class android.view.Viewpublic void setOverScrollEffectPadding(int topPadding,
int bottomPadding)
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
requestDisallowInterceptTouchEvent in interface android.view.ViewParentrequestDisallowInterceptTouchEvent in class android.view.ViewGrouppublic boolean onInterceptTouchEvent(android.view.MotionEvent ev)
onInterceptTouchEvent in class android.view.ViewGrouppublic void addTouchables(java.util.ArrayList<android.view.View> views)
addTouchables in class android.view.ViewGrouppublic void setFriction(float friction)
ViewConfiguration.getScrollFriction().public void setVelocityScale(float scale)
scale - The scale factor to multiply the velocity by.public void smoothScrollToPosition(int position)
position - Scroll to this adapter position.public void smoothScrollToPositionFromLeft(int position,
int offset,
int duration)
offset pixels from the top edge of the view. If this is impossible, (e.g. the offset would scroll the first or
last item beyond the boundaries of the list) it will get as close as possible. The scroll will take duration
milliseconds to complete.position - Position to scroll tooffset - Desired distance in pixels of position from the top of the view when scrolling is finishedduration - Number of milliseconds to use for the scrollpublic void smoothScrollToPositionFromLeft(int position,
int offset)
offset pixels from the top edge of the view. If this is impossible, (e.g. the offset would scroll the first or
last item beyond the boundaries of the list) it will get as close as possible.position - Position to scroll tooffset - Desired distance in pixels of position from the top of the view when scrolling is finishedpublic void smoothScrollToPosition(int position,
int boundPosition)
position - Scroll to this adapter position.boundPosition - Do not scroll if it would move this adapter position out of view.public void smoothScrollBy(int distance,
int duration)
distance - Distance to scroll in pixels.duration - Duration of the scroll animation in milliseconds.public void smoothScrollBy(int distance,
int duration,
boolean linear)
protected void smoothScrollByOffset(int position)
public void offsetChildrenLeftAndRight(int offset)
protected int getHeaderViewsCount()
protected int getFooterViewsCount()
protected abstract void fillGap(boolean after)
down - true if the scroll is going after, false if it is going upprotected void hideSelector()
protected int reconcileSelectedPosition()
protected abstract int findMotionCol(int x)
y - Where the user touchedprotected int findClosestMotionCol(int x)
x - Where the user touchedpublic void invalidateViews()
protected boolean resurrectSelectionIfNeeded()
public abstract void setSelectionInt(int position)
position - the position of the new selectionprotected void handleDataChanged()
public static int getDistance(android.graphics.Rect source,
android.graphics.Rect dest,
int direction)
source - the source rectangledest - the destination rectangledirection - the directionpublic android.view.inputmethod.InputConnection onCreateInputConnection(android.view.inputmethod.EditorInfo outAttrs)
onCreateInputConnection in class android.view.Viewpublic boolean checkInputConnectionProxy(android.view.View view)
checkInputConnectionProxy in class android.view.Viewprotected android.view.ViewGroup.LayoutParams generateDefaultLayoutParams()
generateDefaultLayoutParams in class android.view.ViewGroupprotected android.view.ViewGroup.LayoutParams generateLayoutParams(android.view.ViewGroup.LayoutParams p)
generateLayoutParams in class android.view.ViewGrouppublic AbsHListView.LayoutParams generateLayoutParams(android.util.AttributeSet attrs)
generateLayoutParams in class android.view.ViewGroupprotected boolean checkLayoutParams(android.view.ViewGroup.LayoutParams p)
checkLayoutParams in class android.view.ViewGrouppublic void setTranscriptMode(int mode)
mode - the transcript mode to setTRANSCRIPT_MODE_DISABLED,
TRANSCRIPT_MODE_NORMAL,
TRANSCRIPT_MODE_ALWAYS_SCROLLpublic int getTranscriptMode()
public int getSolidColor()
getSolidColor in class android.view.Viewpublic void setCacheColorHint(int color)
View.setBackgroundDrawable(Drawable)).color - The background colorpublic int getCacheColorHint()
public void reclaimViews(java.util.List<android.view.View> views)
views - A list into which to put the reclaimed viewsprotected void setVisibleRangeHint(int start,
int end)
public void setRecyclerListener(AbsHListView.RecyclerListener listener)
listener - The recycler listener to be notified of views set aside in the recycler.AbsHListView.RecycleBin,
AbsHListView.RecyclerListener