OSDN Git Service

Add start margin to preference icon.
authorDoris Ling <dling@google.com>
Wed, 20 Sep 2017 18:38:40 +0000 (11:38 -0700)
committerDoris Ling <dling@google.com>
Wed, 20 Sep 2017 18:39:42 +0000 (11:39 -0700)
We would like to align the preference icon with the back button above.
Adding the start margin for the icon frame, so that it will be
placed further to the right.

Fixes: 64696037
Test: visual
Change-Id: I3fbcd40fea40bf5a41c1e4281a559e4012664266

packages/SettingsLib/res/layout/preference_two_target.xml

index 2309ec6..c2167f3 100644 (file)
@@ -33,6 +33,7 @@
         android:background="?android:attr/selectableItemBackground"
         android:gravity="start|center_vertical"
         android:clipToPadding="false"
+        android:layout_marginStart="4dp"
         android:paddingStart="?android:attr/listPreferredItemPaddingStart"
         android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">