Android7.0中文文档(API)-- SectionIndexer
来源:互联网 发布:徐培成大数据怎么样 编辑:程序博客网 时间:2024/06/07 02:09
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/SectionIndexer.html
SectionIndexer
public interface SectionIndexer
Interface that may implemented on Adapter
s to enable fast scrolling between sections of anAbsListView
.
可以在Adapter
上实现的接口,以便在AbsListView
的各section之间快速滚动。
A section is a group of list items that have something in common. For example, they may begin with the same letter or they may be songs from the same artist.
section是有共同之处的列表项一个组。例如:它们可能开始与相同的字母,也可能是同一名艺术家的曲目。
ExpandableListAdapter
s that consider groups and sections as synonymous should account for collapsed groups and return an appropriate section/position.ExpandableListAdapter
将组和section视为相同的,其用于已折叠的组,并返回适当的section/位置。
See also:
另请参考:
setFastScrollEnabled(boolean)
摘要
Public方法
abstract int
getPositionForSection(int sectionIndex)
Given the index of a section within the array of section objects, returns the starting position of that section within the adapter.
指定section对象的数组中的section索引,返回适配器中section的起始位置。
abstract int
getSectionForPosition(int position)
Given a position within the adapter, returns the index of the corresponding section within the array of section objects.
指定适配器中的位置,返回对应的section对象的数组中的section索引。
abstract Object[]
getSections()
Returns an array of objects representing sections of the list.
返回对象数组,用于显示列表的section。
Public方法
getPositionForSection
int getPositionForSection (int sectionIndex)
Given the index of a section within the array of section objects, returns the starting position of that section within the adapter.
指定section对象的数组中的section索引,返回适配器中section的起始位置。
- Android7.0中文文档(API)-- SectionIndexer
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- fMRI低频振荡振幅(阅读记录)
- Android 录音数据传输
- CSS3圆角详解
- bootStrap table 使用
- 单例模式详解
- Android7.0中文文档(API)-- SectionIndexer
- tensorflow简单实现卷积前向过程
- TypeArray、ArrayBuffer、Blob、File、DataURL、canvas的相互转换
- SSH反向隧道进行内网穿透
- ls -l命令详解(转)
- 微信小程序图表插件(wx-charts)
- winform根据cmd获取网络ping值
- bootstrap-select清除选中的状态,恢复默认状态
- ATL::CComPtr::operator& 断言 Expression: p == 0 原因分析