blob: 2785af0c2d55709294c99f87482c141eadfbfa37 [file] [log] [blame]
Nicolas Catania53f94fc2009-09-28 23:03:33 -07001<?xml version="1.0" encoding="utf-8"?>
David Brown285fdc62011-05-10 21:48:40 -07002<!-- Copyright (C) 2011 The Android Open Source Project
Nicolas Catania53f94fc2009-09-28 23:03:33 -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-->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@+id/top"
Romain Guy6304c0b2010-01-08 15:06:49 -080019 android:layout_width="match_parent"
20 android:layout_height="match_parent"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070021 android:orientation="vertical"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070022 android:paddingLeft="@dimen/dialpad_horizontal_margin"
23 android:paddingRight="@dimen/dialpad_horizontal_margin">
Nicolas Catania53f94fc2009-09-28 23:03:33 -070024
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070025 <!-- Text field and possibly soft menu button above the keypad where
26 the digits are displayed. -->
Mindy Pereiraf81b7812011-10-10 15:43:07 -070027 <LinearLayout
Daisuke Miyakawa1185d1a2011-08-18 13:41:31 -070028 android:id="@+id/digits_container"
Romain Guy6304c0b2010-01-08 15:06:49 -080029 android:layout_width="match_parent"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070030 android:layout_height="0px"
Daisuke Miyakawae4e37952011-10-13 10:49:54 -070031 android:layout_weight="@integer/dialpad_layout_weight_digits"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070032 android:layout_marginTop="@dimen/dialpad_vertical_margin"
Daisuke Miyakawa2c6aa792011-09-13 15:34:53 -070033 android:gravity="center"
34 android:background="@drawable/dialpad_background" >
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070035
Daisuke Miyakawade158232011-08-15 12:26:55 -070036 <com.android.contacts.dialpad.DigitsEditText
37 android:id="@+id/digits"
Mindy Pereiraf81b7812011-10-10 15:43:07 -070038 android:layout_width="0dip"
39 android:layout_weight="1"
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070040 android:layout_height="match_parent"
41 android:layout_alignParentLeft="true"
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070042 android:gravity="center"
43 android:textAppearance="@style/DialtactsDigitsTextAppearance"
Daisuke Miyakawa2c6aa792011-09-13 15:34:53 -070044 android:textColor="?android:attr/textColorPrimary"
45 android:nextFocusRight="@+id/overflow_menu"
46 android:background="@android:color/transparent" />
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070047
Daisuke Miyakawa2c6aa792011-09-13 15:34:53 -070048 <ImageButton
49 android:id="@+id/overflow_menu"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070050 android:layout_width="48dip"
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070051 android:layout_height="match_parent"
52 android:layout_alignParentRight="true"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070053 android:src="@drawable/ic_menu_overflow"
Daisuke Miyakawa1daa7282011-09-08 12:26:19 -070054 android:contentDescription="@*android:string/action_menu_overflow_description"
Daisuke Miyakawa2c6aa792011-09-13 15:34:53 -070055 android:nextFocusLeft="@id/digits"
56 android:background="?android:attr/selectableItemBackground"/>
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070057
Mindy Pereiraf81b7812011-10-10 15:43:07 -070058 </LinearLayout>
Nicolas Catania53f94fc2009-09-28 23:03:33 -070059
60 <!-- Keypad section -->
61 <include layout="@layout/dialpad" />
62
Daisuke Miyakawa8fcc4cf2011-09-15 19:00:25 -070063 <View
64 android:layout_width="match_parent"
65 android:layout_height="@dimen/dialpad_vertical_margin"
66 android:background="#66000000"/>
67
Daisuke Miyakawa64c14d32011-07-06 17:07:33 -070068 <!-- Horizontal row of buttons (Search + DialButton + Delete.) -->
Daisuke Miyakawa20962612011-06-23 18:29:25 -070069 <include layout="@layout/dialpad_additional_buttons" />
Nicolas Catania53f94fc2009-09-28 23:03:33 -070070
71 <!-- "Dialpad chooser" UI, shown only when the user brings up the
72 Dialer while a call is already in progress.
73 When this UI is visible, the other Dialer elements
74 (the textfield/button and the dialpad) are hidden. -->
75 <ListView android:id="@+id/dialpadChooser"
Romain Guy6304c0b2010-01-08 15:06:49 -080076 android:layout_width="match_parent"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070077 android:layout_height="1dip"
78 android:layout_weight="1"
79 />
80
81</LinearLayout>