Using API21+ Toolbar:
Toolbar
// Toolbar Toolbar toolbar = new Toolbar(this); toolbar.showOverflowMenu();
Would like to remove its shadow
When you add elevation 0dp on your appbarlayout, toolbar will be completely diappeared. So that you should also add translationZ in your xml.
android:translationZ="0.1dp" app:elevation="0dp"
Than it will look like ->