:fire: The powerful and easiest way to implement modern material popup menu.
PowerMenu can be fully customized and used for popup dialogs.
build.gradle
file.PowerMenu
using PowerMenu.Builder
.PowerMenuItem
class. This is how to initialize PowerMenuItem
.OnMenuItemClickListener
is for listening to the item click of the popup menu.setOnMenuItemClickListener
method.CustomPowerMenu
and your customized adapter. MenuBaseAdapter<YOUR_ITEM_MODEL_CLASS>
.CustomPowerMenu
with the onMenuItemClickListener
.PowerMenu
.setLifecycleOwner
method. Then dismiss
method will be called automatically before activity or fragment would be destroyed.PowerMenu
property lazily using powerMenu
keyword and PowerMenu.Factory
abstract class.powerMenu
extension keyword can be used in Activity and Fragment.PowerMenu.Factory
.PowerMenu
using PowerMenu.Builder
.PowerMenuItem
class. This is how to initialize PowerMenuItem
.OnMenuItemClickListener
is for listening to the item click of the popup menu.setOnMenuItemClickListener
method.CustomPowerMenu
and your customized adapter. Here is how to customize the popup item that has an icon. MenuBaseAdapter<YOUR_ITEM_MODEL_CLASS>.
CustomPowerMenu
with the onMenuItemClickListener
.PowerMenu
.