title: hide all actionbar content
body: <p>I'm trying to use a custom layout for the action bar, but i cannot seem to hide all the standard content from the action bar as you can see in the attached screenshot</p>
  
  <p><img src="https://i.stack.imgur.com/nOelS.png" alt="enter image description here"></p>
  
  <p>Here is my code where i try to hide all the data.</p>
  
  <pre><code>getSupportActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.nav_bar));
  getSupportActionBar().setIcon(new ColorDrawable(getResources().getColor(android.R.color.transparent)));
  getSupportActionBar().setDisplayShowTitleEnabled(false);
  getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
  getSupportActionBar().setDisplayShowHomeEnabled(false);
  getSupportActionBar().setDisplayHomeAsUpEnabled(false);
  getSupportActionBar().setHomeButtonEnabled(false);
  </code></pre>
  
  <p>I'm using appcompat and building with android lollipop (21).</p>
  
  <p>This is my custom layout actionbar.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;ImageView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:scaleType="fitXY"
      android:src="@drawable/nav_bar"/&gt;
  
  &lt;TextView
      android:id="@+id/title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Title"
      android:layout_centerInParent="true"
      android:textColor="@color/irapptheme_color"
      android:textSize="20sp"/&gt;
  
  &lt;ImageButton
      android:id="@+id/btn_back"
      android:layout_width="48dp"
      android:layout_height="match_parent"
      android:background="@android:color/darker_gray"
      android:padding="12dp"
      android:layout_centerVertical="true"
      android:scaleType="fitCenter"
      android:src="@drawable/btn_back"
      android:visibility="gone"/&gt;
  
  &lt;ImageButton
      android:id="@+id/btn_search"
      android:layout_width="48dp"
      android:layout_height="match_parent"
      android:layout_alignParentRight="true"
      android:layout_centerVertical="true"
      android:padding="12dp"
      android:background="@android:color/transparent"
      android:src="@drawable/btn_search"
      android:visibility="gone"/&gt;
  </code></pre>
  
  <p></p>