Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bg_navdrawer_item.xml « drawable « res « main « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a366c0d23b5d22f0c944e41890aeb9f86907d7ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    android:color="?colorControlHighlight">

    <item
        android:id="@android:id/mask"
        android:left="@dimen/spacer_1x"
        android:right="@dimen/spacer_1x">

        <shape android:shape="rectangle">
            <!-- value of color is irrelevant, but solid needs to be defined for mask to work -->
            <solid android:color="@color/bg_highlighted" />
            <corners android:radius="@dimen/spacer_1hx" />
        </shape>
    </item>

    <item
        android:left="@dimen/spacer_1x"
        android:right="@dimen/spacer_1x">

        <selector>
            <item android:state_selected="true">
                <shape android:shape="rectangle">
                    <corners android:radius="@dimen/spacer_1hx" />
                    <solid android:color="@color/bg_highlighted" />
                </shape>
            </item>

            <item>
                <shape android:shape="rectangle">
                    <corners android:radius="@dimen/spacer_1hx" />
                </shape>
            </item>
        </selector>
    </item>

</ripple>