完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AbsListView.html
AbsListView
public abstract class AbsListView
extends AdapterView<ListAdapter>
implements TextWatcher, ViewTreeObserver.OnGlobalLayoutListener, Filter.FilterListener, ViewTreeObserver.OnTouchModeChangeListener
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.AdapterView<android.widget.ListAdapter> | |||
↳ | android.widget.AbsListView |
Base class that can be used to implement virtualized lists of items. A list does not have a spatial definition here. For instance, subclases of this class can display the content of the list in a grid, in a carousel, as stack, etc.
可以用来实现项的虚拟化列表的基类。在这里不会占用大篇幅的说明列表。例如,这个类的子类可以在一个网格中或一个carousel控件中像栈一下显示列表的内容。
摘要
嵌套类 | |
---|---|
class | AbsListView.LayoutParams AbsListView extends LayoutParams to provide a place to hold the view type. |
interface | AbsListView.MultiChoiceModeListener A MultiChoiceModeListener receives events for |
interface | AbsListView.OnScrollListener Interface definition for a callback to be invoked when the list or grid has been scrolled. |
interface | AbsListView.RecyclerListener A RecyclerListener is used to receive a notification whenever a View is placed inside the RecycleBin's scrap heap. |
interface | AbsListView.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. |
XML属性 | |
---|---|
android:cacheColorHint | 此列表将始终绘制在的单色不透明背景之上。 |
android:choiceMode | 设定视图的选择行为。 |
android:drawSelectorOnTop | 当设置为true,则在被选项的上面绘制selector。 |
android:fastScrollEnabled | 使能快速滚动滑块,滑块能被拖动并快速的滚动列表。 |
android:listSelector | 列表中当前已选项的drawable。 |
android:scrollingCache | 当设置为true时,列表在滚动期间,使用绘制缓存。 |
android:smoothScrollbar | 如果设置为true, 则列表将基于屏幕上可见的项的像素高度使用更精细的计算方法。 |
android:stackFromBottom | ListView和GridView使用的属性, 内容从底部开始填充。 |
android:textFilterEnabled | 如果设置为true, 则列表将按用户的输入,来筛选结果。 |
android:transcriptMode | 用于列表的transcript模式。 |
继承XML属性 | |
---|---|
From class android.view.ViewGroup
| |
From class android.view.View
|
常量 | |
---|---|
int | CHOICE_MODE_MULTIPLE The list allows multiple choices |
int | CHOICE_MODE_MULTIPLE_MODAL The list allows multiple choices in a modal selection mode |
int | CHOICE_MODE_NONE Normal list that does not indicate choices |
int | CHOICE_MODE_SINGLE The list allows up to one choice |
int | TRANSCRIPT_MODE_ALWAYS_SCROLL The list will automatically scroll to the bottom, no matter what items are currently visible. |
int | TRANSCRIPT_MODE_DISABLED Disables the transcript mode. |
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. |
继承常量 |
---|
From class android.widget.AdapterView
|
From class android.view.ViewGroup
|
From class android.view.View
|