Merge "Shows ripple inside SettingsSpinner and its dropdown items" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1f26477a0b
@@ -15,28 +15,30 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<layer-list
|
||||
<ripple
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:priv-android="http://schemas.android.com/apk/prv/res/android"
|
||||
android:paddingMode="stack">
|
||||
android:color="@color/ripple_color">
|
||||
|
||||
<item
|
||||
android:top="8dp"
|
||||
android:bottom="8dp">
|
||||
<shape>
|
||||
<corners
|
||||
android:radius="28dp"/>
|
||||
<solid
|
||||
android:color="?priv-android:attr/colorAccentPrimary"/>
|
||||
<size
|
||||
android:height="@dimen/spinner_height"/>
|
||||
</shape>
|
||||
<item android:id="@android:id/background">
|
||||
<layer-list android:paddingMode="stack">
|
||||
<item
|
||||
android:top="8dp"
|
||||
android:bottom="8dp">
|
||||
|
||||
<shape>
|
||||
<corners android:radius="28dp"/>
|
||||
<solid android:color="?priv-android:attr/colorAccentPrimary"/>
|
||||
<size android:height="@dimen/spinner_height"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:gravity="center|end"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:end="8dp"
|
||||
android:drawable="@drawable/arrow_drop_down"/>
|
||||
</layer-list>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:gravity="center|end"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:end="8dp"
|
||||
android:drawable="@drawable/arrow_drop_down"/>
|
||||
</layer-list>
|
||||
</ripple>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 The Android Open Source Project
|
||||
Copyright (C) 2018 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.
|
||||
@@ -15,15 +15,14 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<layer-list
|
||||
<ripple
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:priv-android="http://schemas.android.com/apk/prv/res/android">
|
||||
xmlns:priv-android="http://schemas.android.com/apk/prv/res/android"
|
||||
android:color="@color/ripple_color">
|
||||
|
||||
<item>
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<solid
|
||||
android:color="?priv-android:attr/colorAccentSecondary"/>
|
||||
<solid android:color="?priv-android:attr/colorAccentSecondary"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
</ripple>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<color name="ripple_color">@*android:color/material_grey_900</color>
|
||||
</resources>
|
||||
19
packages/SettingsLib/SettingsSpinner/res/values/colors.xml
Normal file
19
packages/SettingsLib/SettingsSpinner/res/values/colors.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<color name="ripple_color">?android:attr/colorControlHighlight</color>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user