title: Actionbar logo padding left
body: <p>The actionbar shows a space on the left side of the logo. This space is reserved for the upindicator i think.</p>
  
  <p>I want to give this space a defined distance of 20dp for example.</p>
  
  <p>How can i do this?</p>
  
  <p>I can set the padding of the icon to 0, but that does not remove the space between the logo and the left side of the screen.</p>
  
  <p>I tried to solve it by using a custom layout. But there is a little problem. Every time the activity launches, first the normal actionbar appears and then shows the custom layout.</p>
  
  <p>This is how i show my custom view:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_custom);
          // Set up the action bar.
          final ActionBar actionBar = getActionBar();
          //set custom actionbar
          actionBar.setDisplayShowCustomEnabled(true);
          actionBar.setCustomView(R.layout.actionbar);
          //Displays the custom design in the actionbar
          actionBar.setDisplayUseLogoEnabled(false);
          actionBar.setDisplayHomeAsUpEnabled(false);
          actionBar.setDisplayShowHomeEnabled(false);
          actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
      }
  </code></pre>
  
  <p>This is in my styles.xml:</p>
  
  <pre><code>        &lt;!--Customize the actionbar--&gt;
          &lt;item name="android:windowActionBarOverlay"&gt;false&lt;/item&gt;
          &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
          &lt;item name="android:actionButtonStyle"&gt;@style/MyActionButton&lt;/item&gt;
  
      &lt;/style&gt;
  
      &lt;style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"&gt;
          &lt;item name="android:background"&gt;@color/green2&lt;/item&gt;
          &lt;item name="android:icon"&gt;@drawable/app_icon_small&lt;/item&gt;
          &lt;!-- Support library compatibility --&gt;
  
      &lt;/style&gt;
  
      &lt;style name="MyActionButton" parent="@android:style/Widget.Holo.Light.ActionButton"&gt;
          &lt;item name="android:paddingRight"&gt;@dimen/padding_border&lt;/item&gt;
          &lt;item name="android:paddingLeft"&gt;@dimen/padding_border&lt;/item&gt;
          &lt;item name="android:src"&gt;@drawable/icon_plus&lt;/item&gt;
          &lt;!--&lt;item name="android:minWidth"&gt;0dp&lt;/item&gt;--&gt;
          &lt;!--&lt;item name="android:paddingLeft"&gt;0dp&lt;/item&gt;--&gt;
          &lt;!--&lt;item name="android:paddingRight"&gt;15dp&lt;/item&gt;--&gt;
          &lt;!-- Support library compatibility --&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>This is the layout of the custom view:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="match_parent"
      android:gravity="center_vertical"
      android:background="@color/green2"&gt;
      &lt;ImageView
          android:id="@+id/header"
          android:contentDescription="@string/app_name"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingLeft="@dimen/padding_border"
          android:paddingRight="@dimen/padding_border"
          android:src="@drawable/app_icon_small"/&gt;
  
      &lt;EditText
          android:id="@+id/et_actionbar_title"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="YOLO"
          android:gravity ="center"
          android:textColor="@android:color/black"
          android:textStyle="bold"
          android:background="@android:color/transparent"
          /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>