instantiateItem

fun instantiateItem(container: ViewGroup, position: Int): Any

Creates the page for the given position, restores any previously saved view state, and adds it to the container.

Return

The View representing the page at the given position.

Parameters

container

The containing View in which the page will be shown.

position

The page position to be instantiated.