blob: 50c4f44f24d3edcac375928553b0e50f0fef6854 [file] [log] [blame]
Anne Rong6fb201a2015-09-16 11:21:00 -07001<?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 Rongd994a772015-09-21 18:16:02 -070018 android:id="@+id/blocked_number_fragment"
Anne Rong6fb201a2015-09-16 11:21:00 -070019 android:layout_width="match_parent"
Andrew Lee3663afe2015-10-04 01:31:28 -070020 android:layout_height="match_parent"
21 android:orientation="vertical"
22 android:paddingTop="?android:attr/actionBarSize"
23 android:background="@color/blocked_number_background">
Anne Rong6fb201a2015-09-16 11:21:00 -070024
25 <android.support.v7.widget.CardView
Andrew Leed77a58b2015-10-20 15:56:00 -070026 android:id="@+id/hide_blocked_calls_setting"
Anne Rong6fb201a2015-09-16 11:21:00 -070027 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
Andrew Leeb980fc42015-10-19 23:57:25 -070029 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
56 <android.support.v7.widget.CardView
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
Anne Rong6fb201a2015-09-16 11:21:00 -070059 card_view:cardCornerRadius="0dp">
60
Anne Rong6fb201a2015-09-16 11:21:00 -070061 <LinearLayout
Andrew Leec412f942015-10-15 10:45:19 -070062 android:orientation="vertical"
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:background="@color/background_dialer_white">
Anne Rong6fb201a2015-09-16 11:21:00 -070066
67 <include layout="@layout/blocked_number_header" />
68
Andrew Leec412f942015-10-15 10:45:19 -070069 <ListView android:id="@id/android:list"
70 android:layout_width="match_parent"
71 android:layout_height="match_parent"
72 android:layout_weight="1"
73 android:drawSelectorOnTop="false"
74 android:headerDividersEnabled="false" />
75
76 <TextView android:id="@android:id/empty"
Anne Rong6fb201a2015-09-16 11:21:00 -070077 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>
87
Andrew Lee3663afe2015-10-04 01:31:28 -070088</LinearLayout>