From 3c5fcca4c397708df494238393879bac3e83c951 Mon Sep 17 00:00:00 2001 From: Gustav Sennton Date: Wed, 16 Jan 2019 17:05:03 +0000 Subject: [PATCH] Update smart reply/action sizes to follow mocks. The smart suggestion mocks show buttons with rounded sides - with this CL we update the button dimensions to make their sides rounded. This CL also changes a couple other button dimensions to follow the mocks. Screenshots: One-line buttons before this CL: https://screenshot.googleplex.com/yzMXZ3Djrmy.png One-line buttons after this CL: https://screenshot.googleplex.com/3rBDmTXzkch.png Two-line buttons after this CL: https://screenshot.googleplex.com/s1HfEsyTFFU.png Two-line buttons after this CL: https://screenshot.googleplex.com/Z2bCLgXCJJu.png Bug: 121186803 Test: build Android and check how smart suggestions look. Change-Id: Idac328c4e5e108e4af99e1de16e4db2dcb404bd2 --- .../smart_reply_button_background.xml | 2 +- packages/SystemUI/res/values/dimens.xml | 6 ++-- .../statusbar/policy/SmartReplyView.java | 30 +++++++++++++++++-- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/packages/SystemUI/res/drawable/smart_reply_button_background.xml b/packages/SystemUI/res/drawable/smart_reply_button_background.xml index 31119a90a7885..5652b49818fcf 100644 --- a/packages/SystemUI/res/drawable/smart_reply_button_background.xml +++ b/packages/SystemUI/res/drawable/smart_reply_button_background.xml @@ -25,7 +25,7 @@ android:insetRight="0dp" android:insetBottom="8dp"> - + diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index ab0bbe10c37c3..b404d67e21582 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -876,8 +876,10 @@ 1dp 14sp 6sp - 24dp - 10dp + + 24dp + 18dp + 8dp