1 <?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 <TextView 64 android:id="@+id/blocked_number_text_view" 65 style="@android:style/TextAppearance.Material.Subhead" 66 android:layout_width="wrap_content" 67 android:layout_height="48dp" 68 android:paddingStart="@dimen/blocked_number_container_padding" 69 android:gravity="center_vertical" 70 android:text="@string/block_list" 71 android:textColor="@color/blocked_number_header_color"/> 72 73 <RelativeLayout 74 android:id="@+id/import_settings" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:visibility="gone"> 78 79 <TextView 80 android:id="@+id/import_description" 81 style="@style/BlockedNumbersDescriptionTextStyle" 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" 84 android:paddingTop="11dp" 85 android:paddingBottom="27dp" 86 android:paddingStart="@dimen/blocked_number_container_padding" 87 android:paddingEnd="@dimen/blocked_number_container_padding" 88 android:text="@string/blocked_call_settings_import_description" 89 android:textColor="@color/secondary_text_color" 90 android:textSize="@dimen/blocked_number_settings_description_text_size"/> 91 92 <Button 93 android:id="@+id/import_button" 94 style="@style/DialerFlatButtonStyle" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:layout_marginEnd="@dimen/blocked_number_container_padding" 98 android:layout_alignParentEnd="true" 99 android:layout_below="@id/import_description" 100 android:text="@string/blocked_call_settings_import_button"/> 101 102 <Button 103 android:id="@+id/view_numbers_button" 104 style="@style/DialerFlatButtonStyle" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_marginEnd="8dp" 108 android:layout_below="@id/import_description" 109 android:layout_toStartOf="@id/import_button" 110 android:text="@string/blocked_call_settings_view_numbers_button"/> 111 112 <View 113 android:layout_width="match_parent" 114 android:layout_height="1dp" 115 android:layout_marginTop="8dp" 116 android:layout_below="@id/import_button" 117 android:background="@color/divider_line_color"/> 118 119 </RelativeLayout> 120 121 <LinearLayout 122 android:id="@+id/migrate_promo" 123 android:layout_width="match_parent" 124 android:layout_height="wrap_content" 125 android:orientation="vertical" 126 android:visibility="gone"> 127 128 <TextView 129 android:id="@+id/migrate_promo_header" 130 style="@android:style/TextAppearance.Material.Subhead" 131 android:layout_width="match_parent" 132 android:layout_height="48dp" 133 android:paddingStart="@dimen/blocked_number_container_padding" 134 android:paddingEnd="@dimen/blocked_number_container_padding" 135 android:gravity="center_vertical" 136 android:textStyle="bold" 137 android:text="@string/migrate_blocked_numbers_dialog_title" 138 android:textColor="@color/blocked_number_header_color"/> 139 140 <TextView 141 android:id="@+id/migrate_promo_description" 142 android:layout_width="match_parent" 143 android:layout_height="wrap_content" 144 android:layout_marginStart="@dimen/blocked_number_container_padding" 145 android:layout_marginEnd="@dimen/blocked_number_container_padding" 146 android:layout_marginBottom="@dimen/blocked_number_container_padding" 147 android:text="@string/migrate_blocked_numbers_dialog_message" 148 android:textColor="@color/secondary_text_color"/> 149 150 <Button 151 android:id="@+id/migrate_promo_allow_button" 152 android:layout_width="wrap_content" 153 android:layout_height="wrap_content" 154 android:text="@string/migrate_blocked_numbers_dialog_allow_button" 155 android:layout_marginStart="@dimen/blocked_number_container_padding" 156 android:layout_marginEnd="@dimen/blocked_number_container_padding" 157 android:layout_gravity="end" 158 style="@style/DialerPrimaryFlatButtonStyle" 159 android:layout_marginBottom="@dimen/blocked_number_container_padding"/> 160 161 <View 162 style="@style/FullWidthDivider"/> 163 164 </LinearLayout> 165 166 <LinearLayout 167 android:id="@+id/add_number_linear_layout" 168 android:layout_width="match_parent" 169 android:layout_height="wrap_content" 170 android:paddingTop="@dimen/blocked_number_add_top_margin" 171 android:paddingBottom="@dimen/blocked_number_add_bottom_margin" 172 android:paddingStart="@dimen/blocked_number_horizontal_margin" 173 android:background="?android:attr/selectableItemBackground" 174 android:baselineAligned="false" 175 android:clickable="true" 176 android:contentDescription="@string/addBlockedNumber" 177 android:focusable="true" 178 android:gravity="center_vertical" 179 android:orientation="horizontal"> 180 181 <ImageView 182 android:id="@+id/add_number_icon" 183 android:layout_width="@dimen/contact_photo_size" 184 android:layout_height="@dimen/contact_photo_size" 185 android:importantForAccessibility="no"/> 186 <LinearLayout 187 android:layout_width="0dp" 188 android:layout_height="wrap_content" 189 android:layout_weight="1" 190 android:layout_marginStart="@dimen/blocked_number_horizontal_margin" 191 android:gravity="center_vertical" 192 android:orientation="vertical"> 193 194 <TextView 195 android:id="@+id/add_number_textview" 196 android:layout_width="wrap_content" 197 android:layout_height="wrap_content" 198 android:includeFontPadding="false" 199 android:text="@string/addBlockedNumber" 200 android:textColor="@color/blocked_number_primary_text_color" 201 android:textSize="@dimen/blocked_number_primary_text_size"/> 202 </LinearLayout> 203 204 </LinearLayout> 205 206 <View 207 android:id="@+id/blocked_number_list_divider" 208 android:layout_width="match_parent" 209 android:layout_height="1dp" 210 android:layout_marginStart="72dp" 211 android:background="@color/divider_line_color"/> 212 213 </LinearLayout> 214 215 </android.support.v7.widget.CardView> 216 217 </LinearLayout> 218