blob: e672551bb19835748a415dc88c9ddcaa493a00cd [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@+id/top"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:orientation="vertical"
22 android:paddingLeft="@dimen/dialpad_horizontal_margin"
23 android:paddingRight="@dimen/dialpad_horizontal_margin">
24
25 <!-- Text field and possibly soft menu button above the keypad where
26 the digits are displayed. -->
27 <LinearLayout
28 android:id="@+id/digits_container"
29 android:layout_width="match_parent"
30 android:layout_height="0px"
31 android:layout_weight="@integer/dialpad_layout_weight_digits"
32 android:layout_marginTop="@dimen/dialpad_vertical_margin"
33 android:gravity="center"
34 android:background="@drawable/dialpad_background" >
35
36 <com.android.dialer.dialpad.DigitsEditText
37 android:id="@+id/digits"
38 android:layout_width="0dip"
39 android:layout_weight="1"
40 android:layout_height="match_parent"
41 android:gravity="center"
42 android:textAppearance="@style/DialtactsDigitsTextAppearance"
43 android:textColor="?android:attr/textColorPrimary"
44 android:nextFocusRight="@+id/overflow_menu"
45 android:background="@android:color/transparent" />
46
47 <ImageButton
48 android:id="@+id/deleteButton"
49 android:layout_width="56dip"
50 android:layout_height="match_parent"
51 android:layout_gravity="center_vertical"
52 android:gravity="center"
53 android:state_enabled="false"
54 android:background="?android:attr/selectableItemBackground"
55 android:contentDescription="@string/description_delete_button"
56 android:src="@drawable/ic_dial_action_delete" />
57 </LinearLayout>
58
Yorke Lee1be01782012-11-07 15:11:44 -080059 <View style="@style/DialpadHorizontalSeparator"/>
60
61 <!-- Smard dial suggestion section -->
62 <GridView
63 android:id="@+id/dialpad_smartdial_list"
64 android:layout_width="match_parent"
65 android:layout_height="42sp"
66 android:columnWidth="0dp"
67 android:numColumns="3"
68 android:stretchMode="columnWidth"
69 android:gravity="center"
70 android:background="@drawable/dialpad_background"/>
71
Chiao Cheng94b10b52012-08-17 16:59:12 -070072 <!-- Keypad section -->
73 <include layout="@layout/dialpad" />
74
Yorke Lee1be01782012-11-07 15:11:44 -080075 <View style="@style/DialpadHorizontalSeparator"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070076
77 <!-- left and right paddings will be modified by the code. See DialpadFragment. -->
78 <FrameLayout
79 android:id="@+id/dialButtonContainer"
80 android:layout_width="match_parent"
81 android:layout_height="0px"
82 android:layout_weight="@integer/dialpad_layout_weight_additional_buttons"
83 android:layout_gravity="center_horizontal"
84 android:background="@drawable/dialpad_background">
85
86 <ImageButton
87 android:id="@+id/dialButton"
88 android:layout_width="match_parent"
89 android:layout_height="match_parent"
90 android:layout_gravity="center"
91 android:state_enabled="false"
92 android:background="@drawable/btn_call"
93 android:contentDescription="@string/description_dial_button"
94 android:src="@drawable/ic_dial_action_call" />
95
96 </FrameLayout>
97
98 <!-- "Dialpad chooser" UI, shown only when the user brings up the
99 Dialer while a call is already in progress.
100 When this UI is visible, the other Dialer elements
101 (the textfield/button and the dialpad) are hidden. -->
102 <ListView android:id="@+id/dialpadChooser"
103 android:layout_width="match_parent"
104 android:layout_height="1dip"
105 android:layout_weight="1"
106 />
107
108</LinearLayout>