public abstract class TuPhotoListDataSource extends java.lang.Object implements TuSdkIndexPath.TuSdkDataSource
构造器和说明 |
---|
TuPhotoListDataSource(android.content.Context context,
AlbumSqlInfo mAlbumInfo,
boolean desc)
数组列表数据源
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
buildIndexPaths(java.util.Hashtable<java.lang.Long,java.util.ArrayList<ImageSqlInfo>> groups,
java.util.ArrayList<TuSdkDate> headers)
创建分组数据索引
|
int |
count()
数据总数
|
TuSdkIndexPath |
getIndexPath(int index)
索引
|
java.util.List<TuSdkIndexPath> |
getIndexPaths()
列表视图分组索引
|
java.lang.Object |
getItem(TuSdkIndexPath indexPath)
获取数据
|
int |
rowCount(int section)
行总数
|
int |
sectionCount()
分组总数
|
int |
viewTypes()
视图类型总数
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onViewBinded
public TuPhotoListDataSource(android.content.Context context, AlbumSqlInfo mAlbumInfo, boolean desc)
context
- mAlbumInfo
- 系统相册数据库信息desc
- 是否为倒序protected void buildIndexPaths(java.util.Hashtable<java.lang.Long,java.util.ArrayList<ImageSqlInfo>> groups, java.util.ArrayList<TuSdkDate> headers)
public java.util.List<TuSdkIndexPath> getIndexPaths()
getIndexPaths
在接口中 TuSdkIndexPath.TuSdkDataSource
public TuSdkIndexPath getIndexPath(int index)
getIndexPath
在接口中 TuSdkIndexPath.TuSdkDataSource
public int viewTypes()
viewTypes
在接口中 TuSdkIndexPath.TuSdkDataSource
public int sectionCount()
sectionCount
在接口中 TuSdkIndexPath.TuSdkDataSource
public int rowCount(int section)
rowCount
在接口中 TuSdkIndexPath.TuSdkDataSource
section
- 分组索引public int count()
count
在接口中 TuSdkIndexPath.TuSdkDataSource
public java.lang.Object getItem(TuSdkIndexPath indexPath)
getItem
在接口中 TuSdkIndexPath.TuSdkDataSource