I am trying to add an option menu in actionbar to my existing app but it is not working. If I create a new project with \"hello world\" default app I can see the button in a
on create of your activity.
getSupportActionBar().setDisplayShowCustomEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(false); customNav = LayoutInflater.from(this).inflate( R.layout.action_bar_customvieew, null); getSupportActionBar().setCustomView(customNav);