Skip to main content

ArrayAdapter

declare class ArrayAdapter<T> extends BaseAdapter {}

ArrayAdapter

Instance Method

add

declare class ArrayAdapter {
add(object: T):void
}
  • Description

    Adds the specified object at the end of the array.

insert

declare class ArrayAdapter {
insert(object: T, index: number) :void
}
  • Description

    Inserts the specified object at the specified index in the array.

clear

declare class ArrayAdapter {
clear(): void
}
  • Description

    Remove all elements from the list.

remove

declare class ArrayAdapter {
remove(object: T):void
}
  • Description

    Removes the specified object from the array.

sort

declare class ArrayAdapter {
sort(comparator: Comparator<T>): void
}
  • Description

    Sorts the content of this adapter using the specified comparator.

getContext

declare class ArrayAdapter {
getContext(): Context
}
  • Description

    Returns the context associated with this array adapter.

getCount

declare class ArrayAdapter {
getCount(): number
}
  • Description

    How many items are in the data set represented by this Adapter.

getItem

declare class ArrayAdapter {
getItem(position: number):T
}
  • Description

    Get the data item associated with the specified position in the data set.

getItemId

declare class ArrayAdapter {
getItemId(position: number): number
}
  • Description

    Get the row id associated with the specified position in the list.

getView

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

declare class ArrayAdapter {
getPosition(item:T): number
}
  • Description

    Returns the position of the specified item in the array.