blob: 13ee7ba7ea07f26a371998b39cfe0bc94192e1cc [file] [log] [blame]
Wenyi Wang1fc3ef42016-01-14 18:21:40 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17 xmlns:card_view="http://schemas.android.com/apk/res-auto"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:focusable="false"
21 android:orientation="vertical">
22
23 <LinearLayout
24 android:id="@+id/blocked_numbers_disabled_for_emergency"
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:paddingTop="27dp"
28 android:paddingBottom="29dp"
29 android:paddingStart="@dimen/blocked_number_container_padding"
30 android:paddingEnd="44dp"
31 android:background="@color/blocked_number_disabled_emergency_background_color"
32 android:focusable="true"
33 android:orientation="vertical"
34 android:visibility="gone">
35
36 <TextView
37 style="@style/BlockedNumbersDescriptionTextStyle"
38 android:textStyle="bold"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:text="@string/blocked_numbers_disabled_emergency_header_label"/>
42
43 <TextView
44 style="@style/BlockedNumbersDescriptionTextStyle"
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 android:text="@string/blocked_numbers_disabled_emergency_desc"/>
48
49 </LinearLayout>
50
51 <android.support.v7.widget.CardView
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
54 card_view:cardCornerRadius="0dp">
55
56 <LinearLayout
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:background="@android:color/white"
60 android:focusable="true"
61 android:orientation="vertical">
62
63 <LinearLayout
64 android:id="@+id/header_textview"
65 android:layout_width="match_parent"
66 android:layout_height="wrap_content"
67 android:orientation="vertical"
68 android:padding="@dimen/blocked_number_container_padding"
69 android:background="@android:color/white"
70 android:focusable="true">
71
72 <TextView
73 android:layout_width="match_parent"
74 android:layout_height="wrap_content"
75 android:textColor="@color/blocked_number_secondary_text_color"
76 android:textSize="@dimen/blocked_number_settings_description_text_size"
77 android:text="@string/blocked_number_header_message"/>
78 </LinearLayout>
79
80 <RelativeLayout
81 android:id="@+id/import_settings"
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:visibility="gone">
85
86 <TextView
87 android:id="@+id/import_description"
88 style="@style/BlockedNumbersDescriptionTextStyle"
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:paddingTop="11dp"
92 android:paddingBottom="27dp"
93 android:paddingStart="@dimen/blocked_number_container_padding"
94 android:paddingEnd="@dimen/blocked_number_container_padding"
95 android:text="@string/blocked_call_settings_import_description"
96 android:textColor="@color/blocked_number_secondary_text_color"
97 android:textSize="@dimen/blocked_number_settings_description_text_size"/>
98
99 <Button
100 android:id="@+id/import_button"
101 style="@style/ContactsFlatButtonStyle"
102 android:layout_width="wrap_content"
103 android:layout_height="wrap_content"
104 android:layout_marginEnd="@dimen/blocked_number_container_padding"
105 android:layout_alignParentEnd="true"
106 android:layout_below="@id/import_description"
107 android:text="@string/blocked_call_settings_import_button"/>
108
109 <Button
110 android:id="@+id/view_numbers_button"
111 style="@style/ContactsFlatButtonStyle"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:layout_marginEnd="8dp"
115 android:layout_below="@id/import_description"
116 android:layout_toStartOf="@id/import_button"
117 android:text="@string/blocked_call_settings_view_numbers_button"/>
118
119 <View
120 android:layout_width="match_parent"
121 android:layout_height="1dp"
122 android:layout_marginTop="8dp"
123 android:layout_below="@id/import_button"
124 android:background="@color/blocked_number_divider_line_color"/>
125
126 </RelativeLayout>
127
128 <LinearLayout
129 android:id="@+id/add_number_linear_layout"
130 android:layout_width="match_parent"
131 android:layout_height="wrap_content"
132 android:paddingTop="@dimen/blocked_number_add_top_margin"
133 android:paddingBottom="@dimen/blocked_number_add_bottom_margin"
134 android:paddingStart="@dimen/blocked_number_horizontal_margin"
135 android:background="?android:attr/selectableItemBackground"
136 android:baselineAligned="false"
137 android:clickable="true"
138 android:contentDescription="@string/addBlockedNumber"
139 android:focusable="true"
140 android:gravity="center_vertical"
141 android:orientation="horizontal">
142
143 <ImageView
144 android:id="@+id/add_number_icon"
145 android:layout_width="@dimen/blocked_number_add_number_icon_size"
146 android:layout_height="@dimen/blocked_number_add_number_icon_size"
147 android:importantForAccessibility="no"/>
148 <LinearLayout
149 android:layout_width="0dp"
150 android:layout_height="wrap_content"
151 android:layout_weight="1"
152 android:layout_marginStart="@dimen/blocked_number_horizontal_margin"
153 android:gravity="center_vertical"
154 android:orientation="vertical">
155
156 <TextView
157 android:id="@+id/add_number_textview"
158 android:layout_width="wrap_content"
159 android:layout_height="wrap_content"
160 android:includeFontPadding="false"
161 android:text="@string/addBlockedNumber"
162 android:textColor="@color/blocked_number_primary_text_color"
163 android:textSize="@dimen/blocked_number_primary_text_size"/>
164 </LinearLayout>
165
166 </LinearLayout>
167
168 <View
169 android:id="@+id/blocked_number_list_divider"
170 android:layout_width="match_parent"
171 android:layout_height="1dp"
172 android:layout_marginStart="72dp"
173 android:background="@color/blocked_number_divider_line_color"/>
174
175 </LinearLayout>
176
177 </android.support.v7.widget.CardView>
178
179</LinearLayout>