title: How to Add a CheckBox in Toolbar with custom background - android
body: <p>Hi i'm new in android and here 
  i want to Have a CheckBox in my Toolbar with a custom background
  my use case is : i want to add current post(in my activity) to favorites list by a checkbox in toolbar
  and i wanna use a star(on/off) icon.</p>
  
  <p>i tried this but the checkBox is null </p>
  
  <pre><code>&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/shwo_menu_download_mp3"
      android:title="@string/download_mp3"
      app:showAsAction="never"/&gt;
  &lt;item android:id="@+id/show_menu_add_to_fav"
      android:checked="true"
      android:enabled="true"
      app:showAsAction="always"
      /&gt;
  &lt;item android:id="@+id/show_menu_setting"
      android:title="@string/show_menu_setting"
      app:showAsAction="never" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>and my Activity:</p>
  
  <pre><code> @Override
  protected void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_show_speech);
      initCheckBox();
      ...
  }
  
  CheckBox checkBoxFav;
  
  private void initCheckBox() {
      checkBoxFav = (CheckBox) findViewById(R.id.show_menu_add_to_fav);
  
      checkBoxFav.setText("some Text");
  }
  </code></pre>