1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 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
17<FrameLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/lists_frame"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:animateLayoutChanges="true">
23
24  <LinearLayout
25      android:layout_width="match_parent"
26      android:layout_height="match_parent"
27      android:orientation="vertical">
28
29    <!-- TODO: Apply background color to ActionBar instead of a FrameLayout. For now, this is
30         the easiest way to preserve correct pane scrolling and searchbar collapse/expand
31         behaviors. -->
32    <FrameLayout
33        android:layout_width="match_parent"
34        android:layout_height="@dimen/action_bar_height_large"
35        android:background="?android:attr/colorPrimary"
36        android:elevation="@dimen/tab_elevation"/>
37
38    <com.android.contacts.common.list.ViewPagerTabs
39        android:id="@+id/lists_pager_header"
40        style="@style/DialtactsActionBarTabTextStyle"
41        android:layout_width="match_parent"
42        android:layout_height="@dimen/tab_height"
43        android:layout_gravity="top"
44        android:elevation="@dimen/tab_elevation"
45        android:orientation="horizontal"
46        android:textAllCaps="true"/>
47
48    <com.android.dialer.app.list.DialerViewPager
49        android:id="@+id/lists_pager"
50        android:layout_width="match_parent"
51        android:layout_height="0dp"
52        android:layout_weight="1"/>
53
54  </LinearLayout>
55
56  <!-- Sets android:importantForAccessibility="no" to avoid being announced when navigating with
57       talkback enabled. It will still be announced when user drag or drop contact onto it.
58       This is required since drag and drop event is only sent to views are visible when drag
59       starts. -->
60  <com.android.dialer.app.list.RemoveView
61      android:id="@+id/remove_view"
62      android:layout_width="match_parent"
63      android:layout_height="@dimen/tab_height"
64      android:layout_marginTop="@dimen/action_bar_height_large"
65      android:contentDescription="@string/remove_contact"
66      android:importantForAccessibility="no">
67
68    <LinearLayout
69        android:id="@+id/remove_view_content"
70        android:layout_width="match_parent"
71        android:layout_height="match_parent"
72        android:background="?android:attr/colorPrimary"
73        android:gravity="center"
74        android:orientation="horizontal"
75        android:visibility="gone">
76
77      <ImageView
78          android:id="@+id/remove_view_icon"
79          android:layout_width="wrap_content"
80          android:layout_height="wrap_content"
81          android:layout_marginTop="8dp"
82          android:layout_marginBottom="8dp"
83          android:src="@drawable/ic_remove"
84          android:tint="?colorTextOnUnthemedDarkBackground"/>
85
86      <TextView
87          android:id="@+id/remove_view_text"
88          android:layout_width="wrap_content"
89          android:layout_height="wrap_content"
90          android:text="@string/remove_contact"
91          android:textColor="?colorTextOnUnthemedDarkBackground"
92          style="@style/Dialer.TextAppearance.Primary"/>
93
94    </LinearLayout>
95
96  </com.android.dialer.app.list.RemoveView>
97
98</FrameLayout>
99