From 9e0ec534d5ff4ce46ebc5b7b3b073e4006faa045 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Tue, 11 Apr 2023 17:00:18 +0200 Subject: [PATCH] [merge] More appropriate pill size for downstream text size https://developer.android.com/reference/com/google/android/material/chip/ChipDrawable Change-Id: Ib21bb1426547c8a49f55e2ecd836f83d9dfe1654 --- library/ui-styles/src/main/res/values/dimens.xml | 7 ++++--- vector/src/main/res/xml/pill_view.xml | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/library/ui-styles/src/main/res/values/dimens.xml b/library/ui-styles/src/main/res/values/dimens.xml index 657e378b2a..91c6fc5b0f 100644 --- a/library/ui-styles/src/main/res/values/dimens.xml +++ b/library/ui-styles/src/main/res/values/dimens.xml @@ -18,9 +18,10 @@ 0.75 - 20sp - 26sp - 4dp + 1sp + 16sp + 18sp + 3dp 128dp 88dp diff --git a/vector/src/main/res/xml/pill_view.xml b/vector/src/main/res/xml/pill_view.xml index f51c9305b8..068f92b23b 100644 --- a/vector/src/main/res/xml/pill_view.xml +++ b/vector/src/main/res/xml/pill_view.xml @@ -3,4 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/Widget.MaterialComponents.Chip.Entry" android:checkable="false" - app:closeIcon="@null" /> \ No newline at end of file + app:chipStartPadding="0dp" + app:chipEndPadding="4dp" + app:iconStartPadding="@dimen/pill_avatar_padding" + app:closeIcon="@null" />