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 xmlns:tools="http://schemas.android.com/tools" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:focusable="false" 22 android:orientation="vertical"> 23 24 <LinearLayout 25 android:id="@+id/blocked_numbers_disabled_for_emergency" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:paddingTop="27dp" 29 android:paddingBottom="29dp" 30 android:paddingStart="@dimen/blocked_number_container_padding" 31 android:paddingEnd="44dp" 32 android:background="?android:attr/colorBackground" 33 android:focusable="true" 34 android:orientation="vertical" 35 android:visibility="gone"> 36 37 <TextView 38 style="@style/BlockedNumbersDescriptionTextStyle" 39 android:textStyle="bold" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:text="@string/blocked_numbers_disabled_emergency_header_label"/> 43 44 <TextView 45 style="@style/BlockedNumbersDescriptionTextStyle" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:text="@string/blocked_numbers_disabled_emergency_desc"/> 49 50 </LinearLayout> 51 52 <android.support.v7.widget.CardView 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 card_view:cardCornerRadius="0dp"> 56 57 <LinearLayout 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:background="@android:color/white" 61 android:focusable="true" 62 android:orientation="vertical"> 63 64 <TextView 65 android:id="@+id/blocked_number_text_view" 66 style="@android:style/TextAppearance.Material.Subhead" 67 android:layout_width="wrap_content" 68 android:layout_height="48dp" 69 android:paddingStart="@dimen/blocked_number_container_padding" 70 android:gravity="center_vertical" 71 android:text="@string/block_list" 72 android:textColor="?android:attr/textColorPrimary"/> 73 74 <RelativeLayout 75 android:id="@+id/import_settings" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:visibility="gone" 79 tools:visibility="visible"> 80 81 <TextView 82 android:id="@+id/import_description" 83 style="@style/BlockedNumbersDescriptionTextStyle" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:paddingTop="11dp" 87 android:paddingBottom="27dp" 88 android:paddingStart="@dimen/blocked_number_container_padding" 89 android:paddingEnd="@dimen/blocked_number_container_padding" 90 android:text="@string/blocked_call_settings_import_description" 91 android:textColor="?colorIcon" 92 android:textSize="@dimen/blocked_number_settings_description_text_size"/> 93 94 <Button 95 android:id="@+id/import_button" 96 style="@style/DialerFlatButtonStyle" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:layout_marginEnd="@dimen/blocked_number_container_padding" 100 android:layout_alignParentEnd="true" 101 android:layout_below="@id/import_description" 102 android:text="@string/blocked_call_settings_import_button"/> 103 104 <Button 105 android:id="@+id/view_numbers_button" 106 style="@style/DialerFlatButtonStyle" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:layout_marginEnd="8dp" 110 android:layout_below="@id/import_description" 111 android:layout_toStartOf="@id/import_button" 112 android:text="@string/blocked_call_settings_view_numbers_button"/> 113 114 <View 115 android:layout_width="match_parent" 116 android:layout_height="1dp" 117 android:layout_marginTop="8dp" 118 android:layout_below="@id/import_button" 119 android:background="@color/dialer_divider_line_color"/> 120 121 </RelativeLayout> 122 123 <LinearLayout 124 android:id="@+id/migrate_promo" 125 android:layout_width="match_parent" 126 android:layout_height="wrap_content" 127 android:orientation="vertical" 128 android:visibility="gone" 129 tools:visibility="visible"> 130 131 <TextView 132 android:id="@+id/migrate_promo_header" 133 style="@android:style/TextAppearance.Material.Subhead" 134 android:textStyle="bold" 135 android:layout_width="match_parent" 136 android:layout_height="48dp" 137 android:paddingStart="@dimen/blocked_number_container_padding" 138 android:paddingEnd="@dimen/blocked_number_container_padding" 139 android:gravity="center_vertical" 140 android:text="@string/migrate_blocked_numbers_dialog_title" 141 android:textColor="?android:attr/textColorPrimary"/> 142 143 <TextView 144 android:id="@+id/migrate_promo_description" 145 android:layout_width="match_parent" 146 android:layout_height="wrap_content" 147 android:layout_marginBottom="@dimen/blocked_number_container_padding" 148 android:layout_marginStart="@dimen/blocked_number_container_padding" 149 android:layout_marginEnd="@dimen/blocked_number_container_padding" 150 android:text="@string/migrate_blocked_numbers_dialog_message" 151 android:textColor="?colorIcon"/> 152 153 <Button 154 android:id="@+id/migrate_promo_allow_button" 155 style="@style/DialerPrimaryFlatButtonStyle" 156 android:layout_width="wrap_content" 157 android:layout_height="wrap_content" 158 android:layout_marginBottom="@dimen/blocked_number_container_padding" 159 android:layout_marginStart="@dimen/blocked_number_container_padding" 160 android:layout_marginEnd="@dimen/blocked_number_container_padding" 161 android:layout_gravity="end" 162 android:text="@string/migrate_blocked_numbers_dialog_allow_button"/> 163 164 <View 165 style="@style/FullWidthDivider"/> 166 167 </LinearLayout> 168 169 <View 170 android:id="@+id/blocked_number_list_divider" 171 android:layout_width="match_parent" 172 android:layout_height="1dp" 173 android:layout_marginStart="72dp" 174 android:background="@color/dialer_divider_line_color"/> 175 176 </LinearLayout> 177 178 </android.support.v7.widget.CardView> 179 180</LinearLayout> 181