Skip to main content

BaseAdapter

declare abstract class BaseAdapter implements ListAdapter {}

BaseAdapter

Instance Method

hasStableIds

declare class BaseAdapter {
hasStableIds(): boolean;
}
  • Description

    Indicates whether the item ids are stable across changes to the underlying data.

isEmpty

declare class BaseAdapter {
isEmpty(): boolean;
}
  • Description

    Check adapter is empty.

getItemId

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

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

getCount

declare class BaseAdapter {
getCount(): number;
}
  • Description

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

getItem

declare class BaseAdapter {
getItem(position: number): Object;
}
  • Description

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

getItemViewType

declare class BaseAdapter {
getItemViewType(position: number): number;
}
  • Description

    Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.

getViewTypeCount

declare class BaseAdapter {
getViewTypeCount(): number;
}
  • Description

    Returns the number of types of Views that will be created by getView(int, View, ViewGroup).

getView

declare class BaseAdapter {
getView(position: number, convertView: View, parent: ViewGroup): View;
}
  • Description

    Get a View that displays the data at the specified position in the data set.