onPageSelected

open fun onPageSelected(position: Int)

Called when a new page is selected. Updates all visible items to reflect which one is currently selected.

Parameters

position

Position index of the newly selected page.