aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/drawable/password_row_background.xml
blob: 7a13c5eef899b420be1e424fc3d67dc5906d0eff (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-2021 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>