title: action bar menu item are showing but not working
body: <p>Menu icon on actionbar are not working. Icon is showing but not clickable . I also apply different theme but not helpful.</p>
  
  <p>Style</p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
          &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /&gt;
  
      &lt;style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.ActionBar" /&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>my main activity</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener {
  
  private TextView time,fajar,zahr,asar,magrib,isha,jumma;
      private TextView namaz,hadith,khatam_e_nubuwat,setting;
      DrawerLayout drawerLayout;
      Toolbar toolbar;
      private ActionBarDrawerToggle actionBarDrawerToggle;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
  
          getSupportActionBar().setDisplayShowHomeEnabled(true);/// this line giving null point exception..
          getSupportActionBar().setDisplayUseLogoEnabled(true);
  
  
          drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
  
          FindElement();
          SetClick();
          drawerIcon();
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          MenuInflater menuInflater = getMenuInflater();
          menuInflater.inflate(R.menu.menu_main, menu);
  
  
  
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
  
          int id = item.getItemId();
  
  
          //noinspection SimplifiableIfStatement
          if (id == R.id.action_settings) {
              Log.d("111111111", "onOptionsItemSelected: "); //// this is the menu item which is not working also drawer icon is not working....
              return true;
          }
  
          return super.onOptionsItemSelected(item);
      }
  </code></pre>
  
  <p>android Manifest</p>
  
  <pre><code>&lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@android:style/Theme.Holo.Light.DarkActionBar" &gt;
          &lt;activity
              android:name=".SliderViewPager"
              android:label="@string/app_name"
              android:theme="@style/AppTheme"&gt;
              &lt;!--android:noHistory="true"&gt;--&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=".MainActivity"
              android:theme="@style/AppTheme"/&gt;
      &lt;/application&gt;
  </code></pre>
  
  <p>this is my menu.xml file </p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      tools:context="com.example.amir.namaztimer.MainActivity"&gt;
      &lt;item
          android:id="@+id/action_settings"
          android:orderInCategory="100"
          android:title="@string/action_settings"
          app:showAsAction="ifRoom"
          android:enabled="true"
          /&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>i update my code and include menu.xml</p>