OSDN Git Service

Use settings gear widget layout
authorBeverly <beverlyt@google.com>
Wed, 2 Jan 2019 20:59:09 +0000 (15:59 -0500)
committerBeverly <beverlyt@google.com>
Wed, 2 Jan 2019 21:37:18 +0000 (16:37 -0500)
Instead of a custom image view for zen_rule_widget

Test: manual
Change-Id: I9e2bd75a8fa661434cf5e5f6ab65bd21d29c30ed
Fixes: 120913779

res/layout/zen_rule_widget.xml

index c6214e7..3d75469 100644 (file)
         android:layout_width="wrap_content"
         android:layout_height="match_parent"
         android:orientation="horizontal">
-    <ImageView
-            android:id="@+id/zen_automatic_rule_widget"
-            android:layout_width="wrap_content"
-            android:layout_height="fill_parent"
-            android:paddingStart="16dip"
-            android:paddingEnd="16dip"
-            android:src="@drawable/ic_settings"
-            android:contentDescription="zen_mode_rule_settings"
-            android:layout_gravity="center"
-            android:background="?android:attr/selectableItemBackground" />
+
+    <include layout="@layout/preference_widget_gear"
+             android:id="@+id/zen_automatic_rule_widget" />
 </LinearLayout>