showPopup
fun View.showPopup(@MenuRes menuResourceId: Int, onInit: PopupMenu.() -> Unit = {}, onClick: (MenuItem) -> Boolean)
Displays a popup by inflating menu with specified menu resource id, calling onClick when an item is clicked, and optionally calling onInit with PopupMenu as receiver to initialize prior to display.