ArrayAdapter
declare class ArrayAdapter<T> extends BaseAdapter {}
ArrayAdapter
Instance Method
add
Signature
declare class ArrayAdapter {
add(object: T):void
}
Description
Adds the specified object at the end of the array.
insert
Signature
declare class ArrayAdapter {
insert(object: T, index: number) :void
}
Description
Inserts the specified object at the specified index in the array.
clear
Signature
declare class ArrayAdapter {
clear(): void
}
Description
Remove all elements from the list.
remove
Signature
declare class ArrayAdapter {
remove(object: T):void
}
Description
Removes the specified object from the array.
sort
Signature
declare class ArrayAdapter {
sort(comparator: Comparator<T>): void
}
Description
Sorts the content of this adapter using the specified comparator.
getContext
Signature
declare class ArrayAdapter {
getContext(): Context
}
Description
Returns the context associated with this array adapter.
getCount
Signature
declare class ArrayAdapter {
getCount(): number
}
Description
How many items are in the data set represented by this Adapter.
getItem
Signature
declare class ArrayAdapter {
getItem(position: number):T
}
Description
Get the data item associated with the specified position in the data set.
getItemId
Signature
declare class ArrayAdapter {
getItemId(position: number): number
}
Description
Get the row id associated with the specified position in the list.
getView
Signature
declare class ArrayAdapter {
getView(position:number, convertView:View, parent:ViewGroup):View
}
Description
Get a View that displays the data at the specified position in the data set.
getPosition
Signature
declare class ArrayAdapter {
getPosition(item:T): number
}
Description
Returns the position of the specified item in the array.