Java android.widget AbsListView fields, constructors, methods, implement or subclass

Example usage for Java android.widget AbsListView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget AbsListView.

The text is from its open source code.

Subclass

android.widget.AbsListView has subclasses.
Click this link to see all its subclasses.

Field

intTRANSCRIPT_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.
intTRANSCRIPT_MODE_ALWAYS_SCROLL
The list will automatically scroll to the bottom, no matter what items are currently visible.
intCHOICE_MODE_NONE
Normal list that does not indicate choices
intCHOICE_MODE_SINGLE
The list allows up to one choice
intCHOICE_MODE_MULTIPLE
The list allows multiple choices
intCHOICE_MODE_MULTIPLE_MODAL
The list allows multiple choices in a modal selection mode

Method

voidclearChoices()
Clear any choices previously set
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
voidfling(int velocityY)
Initiate a fling with the given velocity.
SparseBooleanArraygetCheckedItemPositions()
Returns the set of checked items in the list.
intgetChoiceMode()
booleanisFastScrollEnabled()
Returns true if the fast scroller is enabled.
booleanisItemChecked(int position)
Returns the checked state of the specified position.
voidrequestDisallowInterceptTouchEvent(boolean disallowIntercept)
voidsetAdapter(ListAdapter adapter)
voidsetCacheColorHint(@ColorInt 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.
voidsetChoiceMode(int choiceMode)
Defines the choice behavior for the List.
voidsetDrawSelectorOnTop(boolean onTop)
Controls whether the selection highlight drawable should be drawn on top of the item or behind it.
voidsetFastScrollEnabled(final boolean enabled)
Specifies whether fast scrolling is enabled or disabled.
voidsetItemChecked(int position, boolean value)
Sets the checked state of the specified position.
voidsetMultiChoiceModeListener(MultiChoiceModeListener listener)
Set a MultiChoiceModeListener that will manage the lifecycle of the selection ActionMode .
voidsetOnScrollListener(OnScrollListener l)
Set the listener that will receive notifications every time the list scrolls.
voidsetRecyclerListener(RecyclerListener listener)
Sets the recycler listener to be notified whenever a View is set aside in the recycler for later reuse.
voidsetScrollingCacheEnabled(boolean enabled)
Enables or disables the children's drawing cache during a scroll.
voidsmoothScrollBy(int distance, int duration)
Smoothly scroll by distance pixels over duration milliseconds.