spinner_textfield_background_material.xml revision 73aad6cefece561b2cd02a0dc77db2b2e5b7ae83
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<inset xmlns:android="http://schemas.android.com/apk/res/android"
18       android:inset="@dimen/control_inset_material">
19    <selector android:autoMirrored="true">
20        <item android:state_checked="false" android:state_pressed="false">
21            <layer-list android:paddingMode="stack">
22                <item>
23                    <nine-patch android:src="@drawable/textfield_default_mtrl_alpha"
24                        android:tint="?attr/colorControlNormal" />
25                </item>
26                <item>
27                    <nine-patch android:src="@drawable/spinner_mtrl_am_alpha"
28                        android:tint="?attr/colorControlNormal" />
29                </item>
30            </layer-list>
31        </item>
32        <item>
33            <layer-list android:paddingMode="stack">
34                <item>
35                    <nine-patch android:src="@drawable/textfield_activated_mtrl_alpha"
36                        android:tint="?attr/colorControlActivated" />
37                </item>
38                <item>
39                    <nine-patch android:src="@drawable/spinner_mtrl_am_alpha"
40                        android:tint="?attr/colorControlActivated" />
41                </item>
42            </layer-list>
43        </item>
44    </selector>
45</inset>
46