blob: 2cd796b60394060cabbfdc6cf6c1912e59b6f51e [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?xml version="1.0" encoding="utf-8"?>
Yorke Lee8898cd02013-08-08 10:24:27 -07002<!-- Copyright (C) 2013 The Android Open Source Project
Chiao Cheng94b10b52012-08-17 16:59:12 -07003
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-->
Yorke Leea5d5cdf2014-04-22 17:20:00 -070016<RelativeLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070017 xmlns:android="http://schemas.android.com/apk/res/android"
Yorke Lee86e21f72014-04-02 16:49:38 -070018 android:id="@+id/dialtacts_mainlayout"
Chiao Cheng94b10b52012-08-17 16:59:12 -070019 android:layout_width="match_parent"
20 android:layout_height="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080021 android:orientation="vertical"
Yorke Lee86e21f72014-04-02 16:49:38 -070022 android:focusable="true"
Yorke Lee8898cd02013-08-08 10:24:27 -070023 android:focusableInTouchMode="true"
24 android:clipChildren="false"
Yorke Leecc4660d2014-04-24 11:22:57 -070025 android:animateLayoutChanges="true"
Yorke Lee9e91bb02014-03-05 17:50:50 -080026 android:background="@color/background_dialer_light"
Chiao Cheng94b10b52012-08-17 16:59:12 -070027 >
Yorke Lee86e21f72014-04-02 16:49:38 -070028 <RelativeLayout
Ihab Awad526c0b82014-02-27 12:55:36 -080029 android:id="@+id/dialtacts_container"
Chiao Cheng94b10b52012-08-17 16:59:12 -070030 android:layout_width="match_parent"
Yorke Leea5d5cdf2014-04-22 17:20:00 -070031 android:layout_height="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070032 android:clipChildren="false">
33 <!-- The main contacts grid -->
34 <FrameLayout
Ihab Awad526c0b82014-02-27 12:55:36 -080035 android:layout_height="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070036 android:layout_width="match_parent"
37 android:id="@+id/dialtacts_frame"
Ihab Awad526c0b82014-02-27 12:55:36 -080038 android:clipChildren="false"
Yorke Lee86e21f72014-04-02 16:49:38 -070039 >
40 </FrameLayout>
41 <!-- Search entry box and remove view -->
42 <FrameLayout
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:layout_alignParentTop="true"
46 android:id="@+id/search_and_remove_view_container"
47 android:visibility="gone"
48 >
Yorke Lee86e21f72014-04-02 16:49:38 -070049 <com.android.dialer.list.RemoveView
50 android:layout_width="match_parent"
51 android:layout_height="56dp"
52 android:id="@+id/remove_view_container"
53 android:orientation="horizontal"
54 android:gravity="center">
55 <ImageView
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:id="@+id/remove_view_icon"
59 android:src="@drawable/ic_remove"
60 android:contentDescription="@string/remove_contact"
Ihab Awad526c0b82014-02-27 12:55:36 -080061 />
Yorke Lee86e21f72014-04-02 16:49:38 -070062 <TextView
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:id="@+id/remove_view_text"
66 android:textSize="@dimen/remove_text_size"
67 android:textColor="@color/remove_text_color"
68 android:text="@string/remove_contact"
69 />
70 </com.android.dialer.list.RemoveView>
71 </FrameLayout>
72 </RelativeLayout>
Ihab Awad526c0b82014-02-27 12:55:36 -080073 <FrameLayout
Yorke Leea5d5cdf2014-04-22 17:20:00 -070074 android:layout_height="@dimen/floating_action_button_height"
75 android:layout_width="@dimen/floating_action_button_width"
Yorke Leecc4660d2014-04-24 11:22:57 -070076 android:layout_marginRight="@dimen/floating_action_button_margin_right"
Yorke Leea5d5cdf2014-04-22 17:20:00 -070077 android:layout_marginBottom="@dimen/floating_action_button_margin_bottom"
78 android:id="@+id/floating_action_button"
Yorke Lee8fb6cdb2014-04-25 12:27:12 -070079 android:background="@drawable/floating_action_button"
Yorke Leea5d5cdf2014-04-22 17:20:00 -070080 android:layout_centerHorizontal="true"
81 android:layout_alignParentBottom="true" >
Ihab Awad526c0b82014-02-27 12:55:36 -080082 <ImageButton
83 android:id="@+id/dialpad_button"
Yorke Leea5d5cdf2014-04-22 17:20:00 -070084 android:layout_width="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080085 android:layout_height="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080086 android:background="?android:attr/selectableItemBackground"
87 android:contentDescription="@string/action_menu_dialpad_button"
88 android:src="@drawable/ic_menu_dialpad_lt"/>
89 <ImageButton
90 android:id="@+id/dial_button"
Yorke Leea5d5cdf2014-04-22 17:20:00 -070091 android:layout_width="match_parent"
92 android:layout_height="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080093 android:background="@drawable/btn_call"
94 android:contentDescription="@string/description_dial_button"
95 android:src="@drawable/ic_dial_action_call"
Yorke Lee8898cd02013-08-08 10:24:27 -070096 android:visibility="gone" />
Ihab Awad526c0b82014-02-27 12:55:36 -080097 </FrameLayout>
Yorke Leea5d5cdf2014-04-22 17:20:00 -070098</RelativeLayout>