Adapter
declare interface Adapter {}
Adapter
Instance Method
getCount
Signature
declare class Adapter {
getCount():void;
}
Description
How many items are in the data set represented by this Adapter.
getItem
Signature
declare class Adapter {
getItem(position: number): Object;
}
Description
Get the data item associated with the specified position in the data set.
getViewTypeCount
Signature
declare class Adapter {
getViewTypeCount(): number;
}
Description
Returns the number of types of Views that will be created bygetView(int, View, ViewGroup)
.
isEmpty
Signature
declare class Adapter {
isEmpty(): boolean;
}
Description
Check adapter is empty.
getItemId
Signature
declare class Adapter {
getItemId(position: number): number;
}
Description
Get the row id associated with the specified position in the list.
hasStableIds
Signature
declare class Adapter {
hasStableIds(): boolean;
}
Description
Indicates whether the item ids are stable across changes to the underlying data.
getView
Signature
declare class Adapter {
getView(position: number, convertView: View, parent: ViewGroup): View;
}
Description
Get a View that displays the data at the specified position in the data set.
getItemViewType
Signature
declare class Adapter {
getItemViewType(position: number): number;
}
Description
Get the type of View that will be created bygetView(int, View, ViewGroup)
for the specified item.