public class HListView extends AbsHListView
ListAdapter associated with this view.
See the List View guide.
| Modifier and Type | Class and Description |
|---|---|
static class |
HListView.FixedViewInfo
A class that represents a fixed view in a list, for example a header at the top or a footer at the bottom.
|
AbsHListView.AdapterDataSetObserver, AbsHListView.LayoutParams, AbsHListView.OnScrollListener, AbsHListView.PositionScroller, AbsHListView.RecycleBin, AbsHListView.RecyclerListener, AbsHListView.SelectionBoundsAdjusterAdapterView.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.OnTouchListenerLAYOUT_FORCE_LEFT, LAYOUT_FORCE_RIGHT, LAYOUT_MOVE_SELECTION, LAYOUT_NORMAL, LAYOUT_SET_SELECTION, LAYOUT_SPECIFIC, LAYOUT_SYNC, mAdapter, mCachingActive, mCachingStarted, mCheckStates, mChoiceActionMode, mChoiceMode, mDataSetObserver, mHeightMeasureSpec, mIsAttached, mIsScrap, mLayoutMode, mListPadding, mMotionPosition, mOverscrollMax, mPositionScrollAfterLayout, mPositionScroller, mRecycler, mResurrectToPosition, mSelectedLeft, mSelectorRect, mStackFromRight, mTouchMode, OVERSCROLL_LIMIT_DIVISOR, STATESET_NOTHING, TOUCH_MODE_DONE_WAITING, TOUCH_MODE_DOWN, TOUCH_MODE_FLING, TOUCH_MODE_OVERFLING, TOUCH_MODE_OVERSCROLL, TOUCH_MODE_REST, TOUCH_MODE_SCROLL, TOUCH_MODE_TAP, TRANSCRIPT_MODE_ALWAYS_SCROLL, TRANSCRIPT_MODE_DISABLED, TRANSCRIPT_MODE_NORMALINVALID_COL_ID, INVALID_POSITION, ITEM_VIEW_TYPE_HEADER_OR_FOOTER, ITEM_VIEW_TYPE_IGNORE, LOG_ENABLED, 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 |
|---|
HListView(android.content.Context context) |
HListView(android.content.Context context,
android.util.AttributeSet attrs) |
HListView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFooterView(android.view.View v)
Add a fixed view to appear at the bottom of the list.
|
void |
addFooterView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
Add a fixed view to appear at the bottom of the list.
|
void |
addHeaderView(android.view.View v)
Add a fixed view to appear at the top of the list.
|
void |
addHeaderView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
Add a fixed view to appear at the top of the list.
|
protected boolean |
canAnimate() |
protected void |
dispatchDraw(android.graphics.Canvas canvas) |
boolean |
dispatchKeyEvent(android.view.KeyEvent event) |
protected boolean |
drawChild(android.graphics.Canvas canvas,
android.view.View child,
long drawingTime) |
protected void |
fillGap(boolean down)
Fills the gap left open by a touch-scroll.
|
protected int |
findMotionCol(int x)
Find the col closest to x.
|
android.widget.ListAdapter |
getAdapter()
Returns the adapter currently in use in this ListView.
|
long[] |
getCheckItemIds()
Deprecated.
Use
AbsHListView.getCheckedItemIds() instead. |
android.graphics.drawable.Drawable |
getDivider()
Returns the drawable that will be drawn between each item in the list.
|
int |
getDividerWidth() |
int |
getFooterViewsCount()
Returns the number of footer views in the list.
|
int |
getHeaderViewsCount()
Returns the number of header views in the list.
|
boolean |
getItemsCanFocus() |
int |
getMaxScrollAmount() |
android.graphics.drawable.Drawable |
getOverscrollFooter() |
android.graphics.drawable.Drawable |
getOverscrollHeader() |
boolean |
isOpaque() |
protected void |
layoutChildren()
Subclasses must override this method to layout their children.
|
protected int |
lookForSelectablePosition(int position,
boolean lookDown)
Find a position that can be selected (i.e., is not a separator).
|
int[] |
measureChild(android.view.View child) |
protected void |
onFinishInflate() |
protected void |
onFocusChanged(boolean gainFocus,
int direction,
android.graphics.Rect previouslyFocusedRect) |
void |
onGlobalLayout() |
void |
onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent event) |
void |
onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo info) |
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event) |
boolean |
onKeyMultiple(int keyCode,
int repeatCount,
android.view.KeyEvent event) |
boolean |
onKeyUp(int keyCode,
android.view.KeyEvent event) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
protected boolean |
recycleOnMeasure() |
boolean |
removeFooterView(android.view.View v)
Removes a previously-added footer view.
|
boolean |
removeHeaderView(android.view.View v)
Removes a previously-added header view.
|
boolean |
requestChildRectangleOnScreen(android.view.View child,
android.graphics.Rect rect,
boolean immediate) |
protected void |
resetList()
The list is empty.
|
void |
setAdapter(android.widget.ListAdapter adapter)
Sets the data behind this ListView.
|
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 |
setDivider(android.graphics.drawable.Drawable divider)
Sets the drawable that will be drawn between each item in the list.
|
void |
setDividerWidth(int width)
Sets the height of the divider that will be drawn between each item in the list.
|
void |
setFooterDividersEnabled(boolean footerDividersEnabled)
Enables or disables the drawing of the divider for footer views.
|
void |
setHeaderDividersEnabled(boolean headerDividersEnabled)
Enables or disables the drawing of the divider for header views.
|
void |
setItemsCanFocus(boolean itemsCanFocus)
Indicates that the views created by the ListAdapter can contain focusable items.
|
void |
setOverscrollFooter(android.graphics.drawable.Drawable footer)
Sets the drawable that will be drawn below all other list content.
|
void |
setOverscrollHeader(android.graphics.drawable.Drawable header)
Sets the drawable that will be drawn above all other list content.
|
void |
setSelection(int position)
Sets the currently selected item.
|
void |
setSelectionAfterHeaderView()
setSelectionAfterHeaderView set the selection to be the first list item after the header views.
|
void |
setSelectionFromLeft(int position,
int x)
Sets the selected item and positions the selection x pixels from the left edge of the ListView.
|
void |
setSelectionInt(int position)
Makes the item at the supplied position selected.
|
void |
smoothScrollByOffset(int offset)
Smoothly scroll to the specified adapter position offset.
|
void |
smoothScrollToPosition(int position)
Smoothly scroll to the specified adapter position.
|
addTouchables, checkInputConnectionProxy, checkLayoutParams, clearChoices, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, dispatchSetPressed, draw, drawableStateChanged, findClosestMotionCol, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getCacheColorHint, getCheckedItemCount, getCheckedItemIds, getCheckedItemPosition, getCheckedItemPositions, getChoiceMode, getContextMenuInfo, getDistance, getFocusedRect, getHorizontalScrollbarHeight, getHorizontalScrollFactor, getLeftFadingEdgeStrength, getListPaddingBottom, getListPaddingLeft, getListPaddingRight, getListPaddingTop, getRightFadingEdgeStrength, getSelectedView, getSelector, getSolidColor, getTranscriptMode, handleDataChanged, hideSelector, invalidateParentIfNeeded, invalidateViews, invokeOnItemScrollListener, isItemChecked, isScrollingCacheEnabled, isSmoothScrollbarEnabled, isStackFromRight, jumpDrawablesToCurrentState, keyPressed, obtainView, offsetChildrenLeftAndRight, onAttachedToWindow, onCreateDrawableState, onCreateInputConnection, onDetachedFromWindow, onGenericMotionEvent, onInterceptTouchEvent, onLayout, onOverScrolled, onRestoreInstanceState, onSaveInstanceState, onTouchEvent, onTouchModeChanged, onWindowFocusChanged, performAccessibilityAction, performButtonActionOnTouchDown, performItemClick, pointToColId, pointToPosition, positionSelector, reclaimViews, reconcileSelectedPosition, requestDisallowInterceptTouchEvent, requestLayout, resurrectSelectionIfNeeded, sendAccessibilityEvent, setChoiceMode, setDrawSelectorOnTop, setFriction, setItemChecked, setMultiChoiceModeListener, setOnScrollListener, setOverScrollEffectPadding, setOverScrollMode, setRecyclerListener, setScrollIndicators, setScrollingCacheEnabled, setSelector, setSelector, setSmoothScrollbarEnabled, setStackFromRight, setTranscriptMode, setVelocityScale, setVisibleRangeHint, shouldShowSelector, showContextMenu, showContextMenuForChild, smoothScrollBy, smoothScrollBy, smoothScrollToPosition, smoothScrollToPositionFromLeft, smoothScrollToPositionFromLeft, updateScrollIndicators, verifyDrawableaddView, addView, addView, addView, checkFocus, checkSelectionChanged, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, getCount, getEmptyView, getFirstVisiblePosition, getItemAtPosition, getItemIdAtPosition, getLastVisiblePosition, getOnItemClickListener, getOnItemLongClickListener, getOnItemSelectedListener, getPositionForView, getSelectedItem, getSelectedItemId, getSelectedItemPosition, onRequestSendAccessibilityEvent, rememberSyncState, removeAllViews, removeView, removeViewAt, setEmptyView, setFocusable, setFocusableInTouchMode, setNextSelectedPositionInt, setOnClickListener, setOnItemClickListener, setOnItemLongClickListener, setOnItemSelectedListener, setSelectedPositionIntaddChildrenForAccessibility, 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, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchSetActivated, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, 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, 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, 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, onFinishTemporaryDetach, onHoverChanged, onHoverEvent, onKeyLongPress, 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, waitcanResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindowspublic HListView(android.content.Context context)
public HListView(android.content.Context context,
android.util.AttributeSet attrs)
public HListView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public int getMaxScrollAmount()
public void addHeaderView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
NOTE: Call this before calling setAdapter. This is so ListView can wrap the supplied cursor with one that will also account for header and footer views.
v - The view to add.data - Data to associate with this viewisSelectable - whether the item is selectablepublic void addHeaderView(android.view.View v)
NOTE: Call this before calling setAdapter. This is so ListView can wrap the supplied cursor with one that will also account for header and footer views.
v - The view to add.public int getHeaderViewsCount()
AbsHListViewgetHeaderViewsCount in class AbsHListViewpublic boolean removeHeaderView(android.view.View v)
v - The view to removepublic void addFooterView(android.view.View v,
java.lang.Object data,
boolean isSelectable)
NOTE: Call this before calling setAdapter. This is so ListView can wrap the supplied cursor with one that will also account for header and footer views.
v - The view to add.data - Data to associate with this viewisSelectable - true if the footer view can be selectedpublic void addFooterView(android.view.View v)
NOTE: Call this before calling setAdapter. This is so ListView can wrap the supplied cursor with one that will also account for header and footer views.
v - The view to add.public int getFooterViewsCount()
AbsHListViewgetFooterViewsCount in class AbsHListViewpublic boolean removeFooterView(android.view.View v)
v - The view to removepublic android.widget.ListAdapter getAdapter()
setAdapter(ListAdapter) but might be a WrapperListAdapter.getAdapter in class AdapterView<android.widget.ListAdapter>setAdapter(ListAdapter)public void setAdapter(android.widget.ListAdapter adapter)
WrapperListAdapter, depending on the ListView features currently
in use. For instance, adding headers and/or footers will cause the adapter to be wrapped.setAdapter in class AbsHListViewadapter - The ListAdapter which is responsible for maintaining the data backing this list and for producing a view to
represent an item in that data set.getAdapter()protected void resetList()
resetList in class AbsHListViewpublic boolean requestChildRectangleOnScreen(android.view.View child,
android.graphics.Rect rect,
boolean immediate)
requestChildRectangleOnScreen in interface android.view.ViewParentrequestChildRectangleOnScreen in class android.view.ViewGroupprotected void fillGap(boolean down)
fillGap in class AbsHListViewpublic void smoothScrollToPosition(int position)
smoothScrollToPosition in class AbsHListViewposition - Scroll to this adapter position.public void smoothScrollByOffset(int offset)
smoothScrollByOffset in class AbsHListViewoffset - The amount to offset from the adapter position to scroll to.protected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
onSizeChanged in class AbsHListViewprotected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
onMeasure in class AbsHListViewpublic int[] measureChild(android.view.View child)
protected boolean recycleOnMeasure()
protected int findMotionCol(int x)
AbsHListViewfindMotionCol in class AbsHListViewprotected void layoutChildren()
AbsHListViewlayoutChildren in class AbsHListViewprotected boolean canAnimate()
canAnimate in class AdapterView<android.widget.ListAdapter>public void setSelection(int position)
setSelection in class AdapterView<android.widget.ListAdapter>position - Index (starting at 0) of the data item to be selected.public void setSelectionFromLeft(int position,
int x)
position - Index (starting at 0) of the data item to be selected.x - The distance from the left edge of the ListView (plus padding) that the item will be positioned.public void setSelectionInt(int position)
setSelectionInt in class AbsHListViewposition - the position of the item to selectprotected int lookForSelectablePosition(int position,
boolean lookDown)
lookForSelectablePosition in class AdapterView<android.widget.ListAdapter>position - The starting position to look at.lookDown - Whether to look down for other positions.AdapterView.INVALID_POSITION if nothing can be found.public void setSelectionAfterHeaderView()
public boolean dispatchKeyEvent(android.view.KeyEvent event)
dispatchKeyEvent in class android.view.ViewGrouppublic boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
onKeyDown in interface android.view.KeyEvent.CallbackonKeyDown in class AbsHListViewpublic boolean onKeyMultiple(int keyCode,
int repeatCount,
android.view.KeyEvent event)
onKeyMultiple in interface android.view.KeyEvent.CallbackonKeyMultiple in class android.view.Viewpublic boolean onKeyUp(int keyCode,
android.view.KeyEvent event)
onKeyUp in interface android.view.KeyEvent.CallbackonKeyUp in class AbsHListViewpublic void setItemsCanFocus(boolean itemsCanFocus)
itemsCanFocus - true if items can get focus, false otherwisepublic boolean getItemsCanFocus()
public boolean isOpaque()
isOpaque in class android.view.Viewpublic void setCacheColorHint(int color)
AbsHListViewView.setBackgroundDrawable(Drawable)).setCacheColorHint in class AbsHListViewcolor - The background colorprotected void dispatchDraw(android.graphics.Canvas canvas)
dispatchDraw in class AbsHListViewprotected boolean drawChild(android.graphics.Canvas canvas,
android.view.View child,
long drawingTime)
drawChild in class android.view.ViewGrouppublic android.graphics.drawable.Drawable getDivider()
public void setDivider(android.graphics.drawable.Drawable divider)
#setDividerHeight(int)divider - The drawable to use.public int getDividerWidth()
public void setDividerWidth(int width)
setDivider(Drawable)height - The new height of the divider in pixels.public void setHeaderDividersEnabled(boolean headerDividersEnabled)
headerDividersEnabled - True to draw the headers, false otherwise.setFooterDividersEnabled(boolean),
addHeaderView(android.view.View)public void setFooterDividersEnabled(boolean footerDividersEnabled)
footerDividersEnabled - True to draw the footers, false otherwise.setHeaderDividersEnabled(boolean),
addFooterView(android.view.View)public void setOverscrollHeader(android.graphics.drawable.Drawable header)
header - The drawable to usepublic android.graphics.drawable.Drawable getOverscrollHeader()
public void setOverscrollFooter(android.graphics.drawable.Drawable footer)
footer - The drawable to usepublic android.graphics.drawable.Drawable getOverscrollFooter()
protected void onFocusChanged(boolean gainFocus,
int direction,
android.graphics.Rect previouslyFocusedRect)
onFocusChanged in class AbsHListViewprotected void onFinishInflate()
onFinishInflate in class android.view.View@Deprecated public long[] getCheckItemIds()
AbsHListView.getCheckedItemIds() instead.#CHOICE_MODE_NONE.public void onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent event)
onInitializeAccessibilityEvent in class AbsHListViewpublic void onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo info)
onInitializeAccessibilityNodeInfo in class AbsHListViewpublic void onGlobalLayout()