diff --git a/android/res/layout/about.xml b/android/res/layout/about.xml index 78a8be42b5..541e315538 100644 --- a/android/res/layout/about.xml +++ b/android/res/layout/about.xml @@ -45,19 +45,16 @@ - \ No newline at end of file + diff --git a/android/res/layout/item_search_clear_history.xml b/android/res/layout/item_search_clear_history.xml index 06f2282c92..3015839ae3 100644 --- a/android/res/layout/item_search_clear_history.xml +++ b/android/res/layout/item_search_clear_history.xml @@ -2,4 +2,4 @@ + android:drawableStart="@drawable/ic_cancel"/> diff --git a/android/res/layout/item_search_my_position.xml b/android/res/layout/item_search_my_position.xml index 38f47f40e0..ea1f02f94f 100644 --- a/android/res/layout/item_search_my_position.xml +++ b/android/res/layout/item_search_my_position.xml @@ -2,4 +2,4 @@ + android:drawableStart="@drawable/ic_search_my_position"/> diff --git a/android/res/layout/item_search_recent.xml b/android/res/layout/item_search_recent.xml index f486ac570d..d21db4a622 100644 --- a/android/res/layout/item_search_recent.xml +++ b/android/res/layout/item_search_recent.xml @@ -2,5 +2,5 @@ diff --git a/android/res/layout/item_search_suggest.xml b/android/res/layout/item_search_suggest.xml index 0b59a24ce6..24022e4712 100644 --- a/android/res/layout/item_search_suggest.xml +++ b/android/res/layout/item_search_suggest.xml @@ -3,5 +3,5 @@ xmlns:tools="http://schemas.android.com/tools" style="@style/MwmWidget.TextView.Search" android:textColor="?colorAccent" - android:drawableLeft="@drawable/ic_search_suggest" + android:drawableStart="@drawable/ic_search_suggest" tools:text="Some suggest title"/> diff --git a/android/src/com/mapswithme/util/Graphics.java b/android/src/com/mapswithme/util/Graphics.java index b0ababa8b4..68bd10d3a3 100644 --- a/android/src/com/mapswithme/util/Graphics.java +++ b/android/src/com/mapswithme/util/Graphics.java @@ -72,7 +72,7 @@ public final class Graphics public static void tint(TextView view, @AttrRes int tintAttr) { - final Drawable[] dlist = view.getCompoundDrawables(); + final Drawable[] dlist = view.getCompoundDrawablesRelative(); for (int i = 0; i < dlist.length; i++) dlist[i] = tint(view.getContext(), dlist[i], tintAttr); @@ -81,7 +81,7 @@ public final class Graphics public static void tint(TextView view, ColorStateList tintColors) { - final Drawable[] dlist = view.getCompoundDrawables(); + final Drawable[] dlist = view.getCompoundDrawablesRelative(); for (int i = 0; i < dlist.length; i++) dlist[i] = tint(dlist[i], tintColors);