Skip to main content

ListView

declare class ListView extends ViewGroup {}

Displays a vertically-scrollable collection of views, where each view is positioned immediatelybelow the previous view in the list.

Instance Method

getAdapter

declare class ListView {
getAdapter(): ListAdapter
}
  • Description

    Returns the adapter currently associated with this widget.

setAdapter

declare class ListView {
setAdapter(adapter: ListAdapter): void
}
  • Description

    Sets the data behind this GridView.