Android preference icons not centered on devices => Lollipop
<p>I've added an icon to a ListPreference with android:icon, but on devices with Lollipop or Marshmallow, the icon is placed on the left side of the available space instead of in the center where it is on devices pre-Lollipop, and how it should be.</p>

<p><strong>Devices pre-Lollipop (api 18 - JB 4.3), this is how it should be!</strong></p>

<p><a href="https://i.stack.imgur.com/8KWrd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8KWrd.png" alt="enter image description here"></a></p>

<p><strong>Post-Lollipop (api 23 - MM), icon not centered.</strong></p>

<p><a href="https://i.stack.imgur.com/sWNv1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sWNv1.png" alt="enter image description here"></a></p>

<p><strong>PreferenceScreen</strong></p>

<pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;

    &lt;PreferenceCategory android:title="@string/general"&gt;

        &lt;ListPreference
            android:defaultValue="@string/pref_languages_default"
            android:entries="@array/languages"
            android:entryValues="@array/listLangValues"
            android:icon="@drawable/translate"
            android:key="language"
            android:title="@string/languages" /&gt;

    &lt;/PreferenceCategory&gt;

&lt;/PreferenceScreen&gt;
</code></pre>

<p><strong>translate.xml drawable</strong></p>

<pre><code>&lt;vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="24dp"
    android:width="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"&gt;
    &lt;path android:fillColor="#fff" android:pathData="M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z" /&gt;
&lt;/vector&gt;
</code></pre>

<p>How can I center it on LL or MM?</p>