• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="@color/actionbar_background_color"
36            android:elevation="@dimen/tab_elevation" />
37
38        <com.android.contacts.common.list.ViewPagerTabs
39            android:id="@+id/lists_pager_header"
40            android:layout_width="match_parent"
41            android:layout_height="@dimen/tab_height"
42            android:textAllCaps="true"
43            android:orientation="horizontal"
44            android:layout_gravity="top"
45            android:elevation="@dimen/tab_elevation"
46            style="@style/DialtactsActionBarTabTextStyle" />
47
48        <android.support.v4.view.ViewPager
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.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_height="match_parent"
71            android:layout_width="match_parent"
72            android:background="@color/actionbar_background_color"
73            android:gravity="center"
74            android:orientation="horizontal"
75            android:visibility="gone">
76
77            <ImageView
78                android:layout_width="wrap_content"
79                android:layout_height="wrap_content"
80                android:layout_marginTop="8dp"
81                android:layout_marginBottom="8dp"
82                android:id="@+id/remove_view_icon"
83                android:src="@drawable/ic_remove"
84                android:tint="@color/remove_text_color" />
85
86            <TextView
87                android:layout_width="wrap_content"
88                android:layout_height="wrap_content"
89                android:id="@+id/remove_view_text"
90                android:textSize="@dimen/remove_text_size"
91                android:textColor="@color/remove_text_color"
92                android:text="@string/remove_contact" />
93
94        </LinearLayout>
95
96    </com.android.dialer.list.RemoveView >
97
98</FrameLayout>
99