title: Android - Activity Home/Up arrow has additional padding/margin with SDK 24
body: <p>I've just updated my app from using SDK 23 to SDK 24.</p>
  
  <p>A problem has arisen for my activities that have show the Up/Home arrow (i.e., <code>getSupportActionBar().setDisplayHomeAsUpEnabled(true)</code>) in that there is now additional (unwanted) space between the Up arrow and the activity title.</p>
  
  <p>For activities that don't have an Up arrow, the activity title is in exactly the same place as before, which suggests the additional padding/margin is associated with the Up arrow rather than with the activity title.</p>
  
  <p>My question is how do I change the layout so that it looks the same with SDK 24 as it did with SDK 23?</p>
  
  <p><strong>Small gap between Up arrow and title using SDK 23:</strong>
  <a href="https://i.stack.imgur.com/O7r0e.png" rel="noreferrer"><img src="https://i.stack.imgur.com/O7r0e.png" alt="Small gap between Up arrow and title using SDK 23"></a></p>
  
  <p><strong>Large (unwanted) gap between Up arrow and title using SDK 24:</strong>
  <a href="https://i.stack.imgur.com/Zf48i.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Zf48i.png" alt="Large (unwanted) gap between Up arrow and title using SDK 24"></a></p>
  
  <p>Here is my old build.gradle (SDK 23):</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.3"
  
      defaultConfig {
          applicationId "com.example.myapp"
          minSdkVersion 19
          targetSdkVersion 23
          versionCode 42
          versionName "0.42"
      }
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      packagingOptions {
          exclude 'META-INF/DEPENDENCIES'
          exclude 'META-INF/NOTICE'
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/LICENSE.txt'
          exclude 'META-INF/NOTICE.txt'
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      testCompile 'junit:junit:4.12'
      compile 'com.google.android.gms:play-services-vision:9.0.2'
      compile 'ch.acra:acra:4.7.0'
      compile 'com.android.support:support-v4:23.4.0'
      compile 'com.android.support:recyclerview-v7:23.4.0'
      compile 'com.android.support:appcompat-v7:23.4.0'
      compile 'com.android.support:design:23.4.0'
      compile 'com.android.support:support-v13:23.4.0'
      compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
      compile 'com.google.zxing:core:3.2.1'
  }
  </code></pre>
  
  <p>Here is the new build.gradle (SDK 24):</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 24
      buildToolsVersion "23.0.3"
  
      defaultConfig {
          applicationId "com.example.myapp"
          minSdkVersion 19
          targetSdkVersion 24
          versionCode 42
          versionName "0.42"
      }
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      packagingOptions {
          exclude 'META-INF/DEPENDENCIES'
          exclude 'META-INF/NOTICE'
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/LICENSE.txt'
          exclude 'META-INF/NOTICE.txt'
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      testCompile 'junit:junit:4.12'
      compile 'com.google.android.gms:play-services-vision:9.0.2'
      compile 'ch.acra:acra:4.7.0'
      compile 'com.android.support:support-v4:24.0.0'
      compile 'com.android.support:recyclerview-v7:24.0.0'
      compile 'com.android.support:appcompat-v7:24.0.0'
      compile 'com.android.support:design:24.0.0'
      compile 'com.android.support:support-v13:24.0.0'
      compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
      compile 'com.google.zxing:core:3.2.1'
  }
  </code></pre>