PowerMenu is a program developed by Thong Nguyen. The most used version is 1.5.1, with over 98% of all installations currently using this version. Upon installation and setup, it defines an auto-start registry entry which makes this program run on each Windows boot for all user logins. PowerMenu is a Freeware software in the category Miscellaneous developed by Thong Nguyen. The latest version of PowerMenu is 1.51, released on. It was initially added to our database on. PowerMenu runs on the following operating systems: Windows. Users of PowerMenu gave it a rating of 4 out of 5 stars. 3 Mobility Center is usually available only when Windows is installed on traditional laptop or netbook computers. 4 This shortcut is only available in Windows 8.1 and Windows 10. 5 In Windows 8.1 and later, the Command Prompt and Command Prompt (Admin) shortcuts can be optionally changed to Windows PowerShell and Windows PowerShell (Admin.
In spite of the good performance of Microsoft's windows manager, there are lots of options that many of us turn to when it comes to managing your desktop.
Power Menu is a free app for Windows that lets you add extra features to your windows so that you can efficiently operate your desktop.
Power Menu lets you add features to your windows such as adjusting the level of transparency, minimizing into the system taskbar, or pinning the window so that it is always on top.
All these features are adjustable by right-clicking on the title bar or on the buttons in the taskbar.
By Samantha Eyler-DriscollPower Menu is a free app for Windows that lets you add extra features to your windows so that you can efficiently operate your desktop.
Power Menu lets you add features to your windows such as adjusting the level of transparency, minimizing into the system taskbar, or pinning the window so that it is always on top.
All these features are adjustable by right-clicking on the title bar or on the buttons in the taskbar.
PowerMenu:fire: The powerful and easiest way to implement modern material popup menu. PowerMenu can be fully customized and used for popup dialogs.
Download
I really appreciate that ?Power Menu is used in more than 120,000+ project's dependency all over the ?world.
Gradle
And add a dependency code to your module's
build.gradle
file.Table of Contents
![Powermenu 1 3 Powermenu 1 3](https://image.winudf.com/v2/image/Y29tLm5hbWFuMTQucG93ZXJtZW51X3NjcmVlbnNob3RzXzFfYWIyM2VlZTg/screen-1.jpg?fakeurl=1&type=.jpg)
1. PowerMenu2. Customizing Popup3. Preference4. Menu Effect5. Dialogs6. Anchor7. Background8. Avoid Memory leak9. Functions10. Lazy initialization in Kotlin
Usage
Basic example
This is a basic example on a screenshot. Here is how to create
PowerMenu
using PowerMenu.Builder
.We can add an item or an item list using
PowerMenuItem
class. This is how to initialize PowerMenuItem
.The first argument is an item title, and the other is selected status. If isSelected is true, the item's text and the background color will be changed by settings like below.
OnMenuItemClickListener
is for listening to the item click of the popup menu.After implementing the listener, we should set using
setOnMenuItemClickListener
method.The last, show the popup! Various show & dismiss methods.
Customizing Popup
We can customize item styles using
CustomPowerMenu
and your customized adapter. Here is how to customize the popup item that has an icon. Firstly, we should create our item model class.
And we should create our customized XML layout and an adapter. Custom Adapter should extend
MenuBaseAdapter<YOUR_ITEM_MODEL_CLASS>
.The last, create the
CustomPowerMenu
with the onMenuItemClickListener
.Preference
PowerMenu supports saving of the last selected menu and recovering as lifecycle.Here is how to save and recover selected menu.
Here are the methods related to preference.
Menu Effect
We can give two types of circular revealed animation effect.Here is how to create a menu effect simply.
Dialogs
We can create looks like dialogs using
PowerMenu
.Here is an example of the normal dialog. Dialogs are composed of a header, footer, and body.
And we can create a customized dialog like below.
Anchor
We can show the popup menu as drop down to the anchor.
or we can control the position of the popup menu using the below methods.
like this :
Background
These are options for the background.
Avoid Memory leak
Powermenu 1 360
Dialog, PopupWindow and etc.. have memory leak issue if not dismissed before activity or fragment are destroyed.But Lifecycles are now integrated with the Support Library since Architecture Components 1.0 Stable released.So we can solve the memory leak issue so easily.
Just use
setLifecycleOwner
method. Then dismiss
method will be called automatically before activity or fragment would be destroyed.Lazy initialization in Kotlin
We can initialize the
PowerMenu
property lazily using powerMenu
keyword and PowerMenu.Factory
abstract class.The powerMenu
extension keyword can be used in Activity and Fragment.We should create a factory class which extends
PowerMenu.Factory
.An implementation class of the factory must have a default(non-argument) constructor.Powermenu 1 3/8
Functions
PowerMenu methods
Background methods
Show & Dismiss
Find this library useful? :heart:
Support it by joining stargazers for this repository. :star: And follow me for my next creations! ?