Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 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" |
Anne Rong | d994a77 | 2015-09-21 18:16:02 -0700 | [diff] [blame] | 18 | android:id="@+id/blocked_number_fragment" |
Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
Andrew Lee | 3663afe | 2015-10-04 01:31:28 -0700 | [diff] [blame] | 20 | android:layout_height="match_parent" |
| 21 | android:orientation="vertical" |
| 22 | android:paddingTop="?android:attr/actionBarSize" |
| 23 | android:background="@color/blocked_number_background"> |
Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 24 | |
| 25 | <android.support.v7.widget.CardView |
Andrew Lee | d77a58b | 2015-10-20 15:56:00 -0700 | [diff] [blame] | 26 | android:id="@+id/hide_blocked_calls_setting" |
Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="wrap_content" |
Andrew Lee | b980fc4 | 2015-10-19 23:57:25 -0700 | [diff] [blame] | 29 | android:layout_marginBottom="8dp" |
| 30 | card_view:cardCornerRadius="0dp"> |
| 31 | |
| 32 | <LinearLayout |
| 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:orientation="horizontal" |
| 36 | android:gravity="center_vertical" |
| 37 | android:padding="16dp" |
| 38 | android:paddingEnd="8dp"> |
| 39 | |
| 40 | <TextView |
| 41 | android:layout_width="0dp" |
| 42 | android:layout_height="wrap_content" |
| 43 | android:layout_weight="1" |
| 44 | android:text="@string/blocked_call_settings_hide_setting" |
| 45 | style="@style/BlockedNumbersDescriptionTextStyle" /> |
| 46 | |
| 47 | <Switch android:id="@+id/hide_blocked_calls_switch" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:layout_marginLeft="40dp" /> |
| 51 | |
| 52 | </LinearLayout> |
| 53 | |
| 54 | </android.support.v7.widget.CardView> |
| 55 | |
Andrew Lee | 9af1b36 | 2015-10-15 23:17:30 -0700 | [diff] [blame^] | 56 | <android.support.v7.widget.CardView |
Andrew Lee | b980fc4 | 2015-10-19 23:57:25 -0700 | [diff] [blame] | 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="wrap_content" |
Andrew Lee | 9af1b36 | 2015-10-15 23:17:30 -0700 | [diff] [blame^] | 59 | card_view:cardCornerRadius="0dp"> |
Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 60 | |
Andrew Lee | 9af1b36 | 2015-10-15 23:17:30 -0700 | [diff] [blame^] | 61 | <LinearLayout |
| 62 | android:orientation="vertical" |
Andrew Lee | c412f94 | 2015-10-15 10:45:19 -0700 | [diff] [blame] | 63 | android:layout_width="match_parent" |
Andrew Lee | 9af1b36 | 2015-10-15 23:17:30 -0700 | [diff] [blame^] | 64 | android:layout_height="wrap_content" |
| 65 | android:background="@color/background_dialer_white"> |
Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 66 | |
Andrew Lee | 9af1b36 | 2015-10-15 23:17:30 -0700 | [diff] [blame^] | 67 | <include layout="@layout/blocked_number_header" /> |
Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 68 | |
Andrew Lee | 9af1b36 | 2015-10-15 23:17:30 -0700 | [diff] [blame^] | 69 | <ListView android:id="@id/android:list" |
| 70 | android:layout_width="match_parent" |
| 71 | android:layout_height="0dp" |
| 72 | android:layout_weight="1" |
| 73 | android:drawSelectorOnTop="false" |
| 74 | android:headerDividersEnabled="false" /> |
| 75 | |
| 76 | <TextView android:id="@android:id/empty" |
| 77 | android:layout_width="match_parent" |
| 78 | android:layout_height="match_parent" |
| 79 | android:paddingStart="@dimen/blocked_number_horizontal_margin" |
| 80 | android:paddingTop="@dimen/blocked_number_top_margin" |
| 81 | android:paddingBottom="@dimen/blocked_number_bottom_margin" |
| 82 | android:text="@string/listNoBlockedNumbers" /> |
| 83 | |
| 84 | </LinearLayout> |
| 85 | |
| 86 | </android.support.v7.widget.CardView> |
Anne Rong | 6fb201a | 2015-09-16 11:21:00 -0700 | [diff] [blame] | 87 | |
Andrew Lee | 3663afe | 2015-10-04 01:31:28 -0700 | [diff] [blame] | 88 | </LinearLayout> |