summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/drawable/password_row_background.xml
blob: c2a76bf5c75eddcff8c6e010809624c479fe9853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
  ~ SPDX-License-Identifier: GPL-3.0-only
  -->

<!--
Requires a layer-list since attributes cannot be resolved in selectors, see:
https://stackoverflow.com/a/36424426/297261
 -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <selector>
            <item
                android:drawable="@color/list_multiselect_background"
                android:state_selected="true" />
            <item android:drawable="@android:color/transparent" />
        </selector>
    </item>
    <item android:drawable="?android:attr/selectableItemBackground" />
</layer-list>