I'm trying to vertical center a simple menu item on my 30dp height toolbar. I realize that Material Guidelines suggests a toolbar of 48dp, but I have too many items in my screen to give up any real estate. There must be a way of vertically centering the menu item in my toolbar??
Menu Inflation:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
Menu_main.xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:title="Function"
android:id="@+id/menu_func_keys"
app:showAsAction="always" />
</menu>