LeanMenuBar
Android library to add lean menu bar in activity
Adding the library in the activity
dependencies {
compile project(':leanmenubar')
}
Creating MenuBarController in Activity
MenuBarController menuBarController = new MenuBarController(this);
Creating LeanMenu by using a option string and menuclicklistener
LeanMenu leanMenu = new LeanMenu("Hello", new LeanMenu.MenuClickListener() {
@Override
public void onMenuClick() {
Toast.makeText(MainActivity.this, "Hello", Toast.LENGTH_SHORT).show();
}
});
Adding LeanMenu in MenuBarController
menuBarController.addLeanMenu(leanMenu);
Showing MenuBarController
menuBarController.show();