Skip to content

Commit 082351c

Browse files
committed
Make the add widget button hitrectangle smaller.
Bug: 7421953 Proto-Id: I04fe3f06a7c53603dc38434a18cc52053ccc6bac Change-Id: Ie26ad9a9c683f41bd8bf0b0b24e6832ab32d9469
1 parent b42b842 commit 082351c

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed
-6.83 KB
Loading
-11.9 KB
Loading
-4.12 KB
Loading

core/res/res/layout/keyguard_add_widget.xml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,18 @@
2323
android:id="@+id/keyguard_add_widget"
2424
android:layout_width="match_parent"
2525
android:layout_height="match_parent"
26-
android:gravity="center_horizontal">
27-
<ImageView
28-
android:id="@+id/keyguard_add_widget_view"
29-
android:clickable="true"
30-
android:layout_width="match_parent"
31-
android:layout_height="match_parent"
32-
android:src="@drawable/add_widget" />
26+
>
27+
<FrameLayout
28+
android:layout_width="match_parent"
29+
android:layout_height="match_parent"
30+
>
31+
<ImageView
32+
android:id="@+id/keyguard_add_widget_view"
33+
android:clickable="true"
34+
android:layout_width="wrap_content"
35+
android:layout_height="wrap_content"
36+
android:layout_gravity="center"
37+
android:padding="24dp"
38+
android:src="@drawable/add_widget" />
39+
</FrameLayout>
3340
</com.android.internal.policy.impl.keyguard.KeyguardWidgetFrame>

0 commit comments

Comments
 (0)