blob: 906e8a10c74117f06dd8cba5dfc4a975f5dd6020 [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
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
Andrew Leeb980fc42015-10-19 23:57:25 -070028 android:layout_marginBottom="8dp"
29 card_view:cardCornerRadius="0dp">
30
31 <LinearLayout
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:orientation="horizontal"
35 android:gravity="center_vertical"
36 android:padding="16dp"
37 android:paddingEnd="8dp">
38
39 <TextView
40 android:layout_width="0dp"
41 android:layout_height="wrap_content"
42 android:layout_weight="1"
43 android:text="@string/blocked_call_settings_hide_setting"
44 style="@style/BlockedNumbersDescriptionTextStyle" />
45
46 <Switch android:id="@+id/hide_blocked_calls_switch"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:layout_marginLeft="40dp" />
50
51 </LinearLayout>
52
53 </android.support.v7.widget.CardView>
54
55 <android.support.v7.widget.CardView
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
Anne Rong6fb201a2015-09-16 11:21:00 -070058 card_view:cardCornerRadius="0dp">
59
Anne Rong6fb201a2015-09-16 11:21:00 -070060 <LinearLayout
Andrew Leec412f942015-10-15 10:45:19 -070061 android:orientation="vertical"
62 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
64 android:background="@color/background_dialer_white">
Anne Rong6fb201a2015-09-16 11:21:00 -070065
66 <include layout="@layout/blocked_number_header" />
67
Andrew Leec412f942015-10-15 10:45:19 -070068 <ListView android:id="@id/android:list"
69 android:layout_width="match_parent"
70 android:layout_height="match_parent"
71 android:layout_weight="1"
72 android:drawSelectorOnTop="false"
73 android:headerDividersEnabled="false" />
74
75 <TextView android:id="@android:id/empty"
Anne Rong6fb201a2015-09-16 11:21:00 -070076 android:layout_width="match_parent"
77 android:layout_height="match_parent"
78 android:paddingStart="@dimen/blocked_number_horizontal_margin"
79 android:paddingTop="@dimen/blocked_number_top_margin"
80 android:paddingBottom="@dimen/blocked_number_bottom_margin"
81 android:text="@string/listNoBlockedNumbers" />
82
83 </LinearLayout>
84
85 </android.support.v7.widget.CardView>
86
Andrew Lee3663afe2015-10-04 01:31:28 -070087</LinearLayout>