Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hide navigation bar at PopupMenu

63 views
Skip to first unread message

Jakub

unread,
May 25, 2021, 7:51:57 AM5/25/21
to
I have this code


private fun showPopup(view: View) {
val popup = PopupMenu(this, view)
popup.inflate(R.menu.menu_main)

popup.setOnMenuItemClickListener { item: MenuItem? ->
when (item!!.itemId) {
R.id.menu_about -> {
}

R.id.menu_exit -> {
finishAffinity()
exitProcess(0)
}
}

true
}


popup.show()
}



how to hide navigation bar


At alertDialog i use this
// alertDialog.window!!.decorView.systemUiVisibility = FULLSCREEN

0 new messages