Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8814a0d5 authored by Arc Wang's avatar Arc Wang
Browse files

Shows ripple inside SettingsSpinner and its dropdown items

Bug: 187142293
Test: manual visual
Change-Id: I27190bf619bc3c35bee4c17f3e217c7d16cd7799
parent 8e4f478f
Loading
Loading
Loading
Loading
+23 −21
Original line number Diff line number Diff line
@@ -15,21 +15,21 @@
  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: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"/>
                    <corners android:radius="28dp"/>
                    <solid android:color="?priv-android:attr/colorAccentPrimary"/>
                    <size android:height="@dimen/spinner_height"/>
                </shape>
            </item>

@@ -40,3 +40,5 @@
                android:end="8dp"
                android:drawable="@drawable/arrow_drop_down"/>
        </layer-list>
    </item>
</ripple>
+7 −8
Original line number Diff line number Diff line
<?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>
 No newline at end of file
</ripple>
+19 −0
Original line number Diff line number Diff line
<?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 −0
Original line number Diff line number Diff line
<?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>