Correctly mirror the "Back" button on RTL locales.

Previously depended on the `autoMirror` attribute, but that is not
supported when build-tools generates .pngs for us.
This commit is contained in:
Peter Serwylo 2017-04-07 13:36:52 +10:00
parent 481b96ef17
commit 9be1936e03
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
<!-- Would like to use the android:autoMirror property, but that is not suppoted on pre-lollipop
unless using VectorDrawableCompat (instead of using build-tools to produce .pngs for us). -->
<vector android:height="24dp"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M 4,11 H 16.17 L 10.58,5.41 12,4 20,12 12,20 10.59,18.59 16.17,13 H 4 Z"/>
</vector>

View File

@ -1,4 +1,4 @@
<vector android:autoMirrored="true" android:height="24dp"
<vector android:height="24dp"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>