OSDN Git Service

no_results: also tint image drawable
[android-x86/packages-apps-Eleven.git] / res / layout / no_results_message.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright (C) 2014 The CyanogenMod 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 <org.lineageos.eleven.widgets.NoResultsContainer
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     android:id="@+id/no_results_container"
21     android:gravity="center_horizontal"
22     android:layout_width="@dimen/no_results_width"
23     android:layout_height="wrap_content"
24     android:layout_centerInParent="true"
25     android:layout_gravity="center"
26     android:orientation="vertical"
27     android:visibility="gone">
28
29     <ImageView
30         android:id="@+id/no_results_image"
31         android:layout_width="@dimen/white_note_width"
32         android:layout_height="@dimen/white_note_height"
33         android:layout_gravity="center_horizontal"
34         android:paddingBottom="@dimen/white_note_padding_bottom"
35         android:scaleType="centerInside"
36         android:src="@drawable/no_results" />
37
38     <LinearLayout
39         android:layout_width="fill_parent"
40         android:layout_height="wrap_content"
41         android:gravity="center_horizontal"
42         android:orientation="vertical"
43         android:paddingBottom="@dimen/no_results_text_padding_bottom">
44         <TextView
45             android:id="@+id/no_results_main_text"
46             android:layout_width="match_parent"
47             android:layout_height="wrap_content"
48             android:gravity="center_horizontal"
49             android:layout_gravity="center_horizontal"
50             android:maxLines="2"
51             android:textAllCaps="true"
52             android:textColor="@color/no_results"
53             android:textSize="@dimen/no_results_text_main"
54             android:textStyle="bold"
55             android:text="@string/empty_generic_main" />
56
57         <TextView
58             android:id="@+id/no_results_main_highlight_text"
59             android:layout_width="match_parent"
60             android:layout_height="wrap_content"
61             android:ellipsize="end"
62             android:gravity="center_horizontal"
63             android:layout_gravity="center_horizontal"
64             android:maxLines="2"
65             android:textColor="@color/no_results"
66             android:textSize="@dimen/no_results_text_main"
67             android:textStyle="bold|italic"
68             android:visibility="gone" />
69     </LinearLayout>
70
71     <TextView
72         android:id="@+id/no_results_secondary_text"
73         android:layout_width="fill_parent"
74         android:layout_height="wrap_content"
75         android:gravity="center_horizontal"
76         android:textColor="@color/no_results"
77         android:textSize="@dimen/no_results_text_secondary"
78         android:text="@string/empty_generic_secondary" />
79 </org.lineageos.eleven.widgets.NoResultsContainer>