diff options
| author | 2021-01-11 14:24:20 +0800 | |
|---|---|---|
| committer | 2021-01-11 14:35:11 +0800 | |
| commit | 3b9574c80df2657e336c3f173caf54b62c46883a (patch) | |
| tree | 012d85593b11f12672ecff6db64b1f2e913093fe | |
| parent | f4e08c791c515268636dd27d3c4dc5575795bb38 (diff) | |
Update background color of main switch bar.
Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: Ia4f6d5f38dcadcdf07aec9aacd607a8c31427709
| -rw-r--r-- | packages/SettingsLib/MainSwitchPreference/res/layout/main_switch_bar.xml | 6 | ||||
| -rw-r--r-- | packages/SettingsLib/MainSwitchPreference/res/values/colors.xml | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/SettingsLib/MainSwitchPreference/res/layout/main_switch_bar.xml b/packages/SettingsLib/MainSwitchPreference/res/layout/main_switch_bar.xml index a9e9f8cb9ca5..b1553e9f463f 100644 --- a/packages/SettingsLib/MainSwitchPreference/res/layout/main_switch_bar.xml +++ b/packages/SettingsLib/MainSwitchPreference/res/layout/main_switch_bar.xml @@ -15,10 +15,10 @@ limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="match_parent" - android:background="@android:color/transparent" android:orientation="vertical"> <LinearLayout @@ -26,7 +26,7 @@ android:minHeight="@dimen/min_switch_bar_height" android:layout_height="wrap_content" android:layout_width="match_parent" - android:background="@android:color/transparent" + android:background="?android:attr/colorBackground" android:paddingLeft="@dimen/switchbar_margin_start" android:paddingRight="@dimen/switchbar_margin_end"> diff --git a/packages/SettingsLib/MainSwitchPreference/res/values/colors.xml b/packages/SettingsLib/MainSwitchPreference/res/values/colors.xml index b4013988fc84..ac8ab14738e9 100644 --- a/packages/SettingsLib/MainSwitchPreference/res/values/colors.xml +++ b/packages/SettingsLib/MainSwitchPreference/res/values/colors.xml @@ -17,7 +17,6 @@ <resources> - <color name="background_color">@android:color/transparent</color> <color name="title_text_color">@*android:color/primary_text_light</color> <color name="thumb_off">#BFFFFFFF</color> <color name="track_on">@*android:color/accent_device_default_dark</color> |