forEachIndexed

inline fun Menu.forEachIndexed(action: (index: Int, item: MenuItem) -> Unit)(source)

Performs the given action on each item in this menu, providing its sequential index.


inline fun ViewGroup.forEachIndexed(action: (index: Int, view: View) -> Unit)(source)

Performs the given action on each view in this view group, providing its sequential index.