Android7.0中文文档(API)-- AbsListView

完整内容,请查看: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控件中像栈一下显示列表的内容。

摘要


嵌套类

classAbsListView.LayoutParams

AbsListView extends LayoutParams to provide a place to hold the view type. 
AbsListView扩展了LayoutParams,提供了保存视图类型的位置。 

interfaceAbsListView.MultiChoiceModeListener

A MultiChoiceModeListener receives events for CHOICE_MODE_MULTIPLE_MODAL
MultiChoiceModeListener从CHOICE_MODE_MULTIPLE_MODAL接收事件。 

interfaceAbsListView.OnScrollListener

Interface definition for a callback to be invoked when the list or grid has been scrolled. 
回调的接口定义,当列表或网格已被滚动时调用。 

interfaceAbsListView.RecyclerListener

A RecyclerListener is used to receive a notification whenever a View is placed inside the RecycleBin's scrap heap. 
每当视图被放置在RecycleBin的废弃堆中时,RecyclerListener将收到一个通知。 

interfaceAbsListView.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:stackFromBottomListView和GridView使用的属性, 内容从底部开始填充。 
android:textFilterEnabled如果设置为true, 则列表将按用户的输入,来筛选结果。 
android:transcriptMode用于列表的transcript模式。 

继承XML属性

From class android.view.ViewGroup
From class android.view.View

常量

intCHOICE_MODE_MULTIPLE

The list allows multiple choices
此列表允许选择多个项。

intCHOICE_MODE_MULTIPLE_MODAL

The list allows multiple choices in a modal selection mode
列表允许在模态选择模式(modal selection mode)下进行多项选择

intCHOICE_MODE_NONE

Normal list that does not indicate choices
不指示选择模式的普通列表

intCHOICE_MODE_SINGLE

The list allows up to one choice
此列表只允许选择一个项

intTRANSCRIPT_MODE_ALWAYS_SCROLL

The list will automatically scroll to the bottom, no matter what items are currently visible.
无论当前可见的项是什么, 列表都将自动滚动到底部。

intTRANSCRIPT_MODE_DISABLED

Disables the transcript mode.
禁用transcript模式。

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.
当收到数据集更改通知,并且仅当最后一个项在屏幕上已可见时, 该列表将自动滚动到底部。

继承常量

From class android.widget.AdapterView
From class android.view.ViewGroup
From class android.view.View

继承字段

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值