title: Action Bar Menu Items Duplicating on Run
body: <p>I am very new to Java Programming and Android Studio.
  While creating an Options Menu, I created a list of options in the main menu with two items in a group sub menu.</p>
  
  <p>This is my menu.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      &gt;
      &lt;item
          android:id="@+id/giveup_setting"
          android:orderInCategory="1"
          app:showAsAction="ifRoom"
          android:title="@string/action_option1"/&gt;
      &lt;item
          android:id="@+id/new_game_setting"
          android:orderInCategory="2"
          app:showAsAction="never"
          android:title="@string/action_option2"/&gt;
      &lt;item
          android:id="@+id/help_setting"
          android:orderInCategory="3"
          app:showAsAction="never"
          android:title="@string/action_option3"/&gt;
  
      &lt;item
          android:id="@+id/settings_setting"
          android:orderInCategory="4"
          app:showAsAction="never"
          android:title="@string/action_option4" /&gt;
      &lt;menu&gt;
      &lt;group android:checkableBehavior="single"&gt;
          &lt;item
              android:id="@+id/menu_color"
              android:orderInCategory="1"
              app:showAsAction="never"
              android:title="@string/layout_color"/&gt;
          &lt;item
              android:id="@+id/menu_text"
              android:orderInCategory="2"
              app:showAsAction="never"
              android:title="@string/layout_text"/&gt;
      &lt;/group&gt;
      &lt;/menu&gt;
      &lt;item
          android:id="@+id/about_setting"
          android:orderInCategory="5"
          app:showAsAction="never"
          android:title="@string/action_option5"/&gt;
      &lt;item
          android:id="@+id/exit_setting"
          android:orderInCategory="6"
          app:showAsAction="never"
          android:title="@string/action_option6"/&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>An this is how I inflate the menu in my MainActivity:</p>
  
  <pre><code>    @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          menu.clear();
          getMenuInflater().inflate(R.menu.menu, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem menu) {
          // Handle item selection
          switch (menu.getItemId()) {
              case R.id.help_setting:
                  //show help screens
  
              return true;
  
              case R.id.menu_color:
                  //change a layout of my main activity
              return true;
  
              case R.id.menu_text:
                     //change another layout of my main activity
              return true;*/
  
              case R.id.about_setting:
                     //show my about screen
              return true;
  
              case R.id.giveup_setting:
                  //resets the game
  
              case R.id.new_game_setting:
                  //restarts the app
                  return true;
  
              case R.id.exit_setting:
                  //exits the app
                  return true;
              default:
                  return super.onOptionsItemSelected(menu);
          }
  
  }
  </code></pre>
  
  <p>On running the app, the menu populates but the "Settings" item (which has the nested group radio buttons) displays twice.</p>
  
  <p><a href="http://i.stack.imgur.com/Uk7TW.png" rel="nofollow">On running the app, the menu populates but the "Settings" item (which has the nested group radio buttons) displays twice.</a></p>
  
  <p>What am I doing wrong?</p>