From c860f87861d563e25b74a8aa10be580b63a89e3e Mon Sep 17 00:00:00 2001 From: shaoweishen Date: Wed, 26 Oct 2022 07:28:36 +0000 Subject: [PATCH] [Sound Panel] Set inset for button background add inset for button of Sound panel, to prevent truncated when set Display/Font size to biggest. attached screenshots in bug. Test: Verified on device Bug: 252952472 Change-Id: I407d4d6cdac47cfcc63470aa8b5d4e5817e1705b --- ...olume_dialog_button_background_outline.xml | 31 ++++++++++--------- .../volume_dialog_button_background_solid.xml | 29 +++++++++-------- res/layout/panel_layout.xml | 4 +-- 3 files changed, 35 insertions(+), 29 deletions(-) diff --git a/res/drawable/volume_dialog_button_background_outline.xml b/res/drawable/volume_dialog_button_background_outline.xml index 78f3fcf3c5b..efbaec63bd5 100644 --- a/res/drawable/volume_dialog_button_background_outline.xml +++ b/res/drawable/volume_dialog_button_background_outline.xml @@ -14,18 +14,21 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - \ No newline at end of file + android:insetTop="6dp" + android:insetBottom="6dp"> + + + + + + + \ No newline at end of file diff --git a/res/drawable/volume_dialog_button_background_solid.xml b/res/drawable/volume_dialog_button_background_solid.xml index 1fa8f20cf31..697131db247 100644 --- a/res/drawable/volume_dialog_button_background_solid.xml +++ b/res/drawable/volume_dialog_button_background_solid.xml @@ -15,17 +15,20 @@ limitations under the License. --> - - - - - - \ No newline at end of file + android:insetTop="6dp" + android:insetBottom="6dp"> + + + + + + + \ No newline at end of file diff --git a/res/layout/panel_layout.xml b/res/layout/panel_layout.xml index 2b9daebf85d..f154abc40cb 100644 --- a/res/layout/panel_layout.xml +++ b/res/layout/panel_layout.xml @@ -117,7 +117,7 @@ android:id="@+id/see_more" style="@style/PanelOptionRoundedOutlinedButton" android:layout_width="wrap_content" - android:layout_height="36dp" + android:layout_height="wrap_content" android:minWidth="0dp" android:text="@string/settings_button"/> @@ -130,7 +130,7 @@ android:id="@+id/done" style="@style/PanelOptionRoundedSolidButton" android:layout_width="wrap_content" - android:layout_height="36dp" + android:layout_height="wrap_content" android:minWidth="0dp" android:text="@string/done"/>