Usual behaviour:
When we create option, we usually have three dots and when we click three dots button, option menu will be displayed. I have button on bottom too. When I click the button, option menu is displaying
My Requirement:
When we create option, how to display option menu without three dots. Because I have button on bottom and when I click the button , option menu is diplaying. But I need to remove only three dots.(hamberger menu) because my requirement is, I need to use older type where menu is present in bottom and when we click the bottom menu,it display overflow menu in androidxappcompat activity.
Update: I used getSupportActionBar() to hide the menu. But I need to move the option menu at bottom.
needsMenuKey = appliInfo.metaData.getBoolean("com.package.name");
Log.i("MainActivity", "needsMenuKey[" + needsMenuKey + "]");
if (needsMenuKey) {
if (getSupportActionBar() != null) {
getSupportActionBar().hide();
}


You should either use NoActionBar Theme or should override onCreateOptionsMenu() and return false without calling super.onCreateOptionsMenu(). I hope one of these solutions will work for you. If yes, do mark this as answer.