destroyItem
open fun destroyItem(@NonNull container: @NonNull ViewGroup, position: Int, @NonNull object: @NonNull Any)
Remove a page for the given position. The adapter is responsible for removing the view from its container, although it only must ensure this is done by the time it returns from finishUpdate.
Parameters
container
The containing View from which the page will be removed.
position
The page position to be removed.
object
The same object that was returned by instantiateItem.
open fun destroyItem(@NonNull container: @NonNull View, position: Int, @NonNull object: @NonNull Any)
Deprecated
Use destroyItem
Remove a page for the given position. The adapter is responsible for removing the view from its container, although it only must ensure this is done by the time it returns from finishUpdate.
Parameters
container
The containing View from which the page will be removed.
position
The page position to be removed.
object
The same object that was returned by instantiateItem.