diff options
| author | 2024-06-11 10:20:58 -0700 | |
|---|---|---|
| committer | 2024-06-11 10:20:58 -0700 | |
| commit | ec9f67b3b26ff01ec5258e419b83fe14d82d5849 (patch) | |
| tree | 491e938b0cb120ffa7c591267b94dcd842f72dee /java | |
| parent | 2735c39b5f7c83e697af406ba7bef1cde926546f (diff) | |
Increate profile button clickable area
Increase profile buttons clickable area while preserving their
appearance.
Fix: 333992288
Test: use layout inspection tools to verify the new view sizes; visual
verification
Change-Id: I73c0b076503763482b4552a07668d13d113c7f43
Diffstat (limited to 'java')
| -rw-r--r-- | java/res/drawable/inset_resolver_profile_tab_bg.xml | 21 | ||||
| -rw-r--r-- | java/res/layout/resolver_profile_tab_button.xml | 5 |
2 files changed, 23 insertions, 3 deletions
diff --git a/java/res/drawable/inset_resolver_profile_tab_bg.xml b/java/res/drawable/inset_resolver_profile_tab_bg.xml new file mode 100644 index 00000000..bc62b047 --- /dev/null +++ b/java/res/drawable/inset_resolver_profile_tab_bg.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + ~ Copyright (C) 2024 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/resolver_profile_tab_bg" + android:insetLeft="0dp" + android:insetRight="0dp" + android:insetTop="6dp" + android:insetBottom="6dp" /> diff --git a/java/res/layout/resolver_profile_tab_button.xml b/java/res/layout/resolver_profile_tab_button.xml index 1c2bc1ca..52a1aacf 100644 --- a/java/res/layout/resolver_profile_tab_button.xml +++ b/java/res/layout/resolver_profile_tab_button.xml @@ -19,11 +19,10 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:layout_width="0dp" - android:layout_height="36dp" + android:layout_height="48dp" android:layout_weight="1" - android:layout_marginVertical="6dp" android:layout_marginHorizontal="@dimen/resolver_profile_tab_margin" - android:background="@drawable/resolver_profile_tab_bg" + android:background="@drawable/inset_resolver_profile_tab_bg" android:textColor="@color/resolver_profile_tab_text" android:textSize="@dimen/resolver_tab_text_size" android:textAppearance="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" |