• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<selector xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:tv="http://schemas.android.com/apk/res-auto" >
20
21    <!-- This state is needed as a too wide ripple will try to allocate too much memory. -->
22    <item android:state_focused="true" tv:state_current_program="true"
23        tv:state_program_too_wide="true" >
24        <layer-list>
25            <item>
26                <nine-patch
27                    android:src="@drawable/program_guide_table_item_background_focused_enabled" />
28            </item>
29            <item android:id="@+id/reverse_progress" >
30                <clip android:gravity="end" >
31                    <color android:color="@color/program_guide_table_item_focus_progress_overlay" />
32                </clip>
33            </item>
34        </layer-list>
35    </item>
36
37    <item android:state_focused="true" tv:state_current_program="true" >
38        <ripple android:color="?android:attr/colorControlHighlight" >
39            <item>
40                <nine-patch
41                    android:src="@drawable/program_guide_table_item_background_focused_enabled" />
42            </item>
43            <item android:id="@+id/reverse_progress" >
44                <clip android:gravity="end" >
45                    <color android:color="@color/program_guide_table_item_focus_progress_overlay" />
46                </clip>
47            </item>
48        </ripple>
49    </item>
50    <item android:state_focused="true" >
51        <nine-patch android:src="@drawable/program_guide_table_item_background_focused" />
52    </item>
53    <item>
54        <nine-patch android:src="@drawable/program_guide_table_item_background_normal" />
55    </item>
56</selector>