blob: 90d25931da7c24c3c4884a3400d383bc78bb7e65 [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. -->
27 <RelativeLayout
Romain Guy6304c0b2010-01-08 15:06:49 -080028 android:layout_width="match_parent"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070029 android:layout_height="0px"
30 android:layout_weight="0.200"
31 android:layout_marginTop="@dimen/dialpad_vertical_margin"
Daisuke Miyakawa24758862011-07-13 14:09:20 -070032 android:gravity="center" >
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070033
34 <!-- Type of this EditText is set to NULL (to disable the IME keyboard)
35 in the java code.
36
37 Background drawable can be controlled programatically. -->
38 <EditText android:id="@+id/digits"
39 android:layout_width="match_parent"
40 android:layout_height="match_parent"
41 android:layout_alignParentLeft="true"
42 android:layout_toLeftOf="@+id/moreoverflow"
Daisuke Miyakawa24758862011-07-13 14:09:20 -070043 android:background="@drawable/dialpad_background"
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070044 android:gravity="center"
45 android:textAppearance="@style/DialtactsDigitsTextAppearance"
46 android:textColor="?android:attr/textColorPrimary" />
47
48 <ImageButton android:id="@+id/overflow_menu"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070049 android:layout_width="48dip"
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070050 android:layout_height="match_parent"
51 android:layout_alignParentRight="true"
Daisuke Miyakawa21992512011-08-08 09:09:53 -070052 android:src="@drawable/ic_menu_overflow"
53 android:background="@android:color/transparent"/>
Daisuke Miyakawabd762dc2011-07-06 13:03:06 -070054
55 </RelativeLayout>
Nicolas Catania53f94fc2009-09-28 23:03:33 -070056
57 <!-- Keypad section -->
58 <include layout="@layout/dialpad" />
59
Daisuke Miyakawa64c14d32011-07-06 17:07:33 -070060 <!-- Horizontal row of buttons (Search + DialButton + Delete.) -->
Daisuke Miyakawa20962612011-06-23 18:29:25 -070061 <include layout="@layout/dialpad_additional_buttons" />
Nicolas Catania53f94fc2009-09-28 23:03:33 -070062
63 <!-- "Dialpad chooser" UI, shown only when the user brings up the
64 Dialer while a call is already in progress.
65 When this UI is visible, the other Dialer elements
66 (the textfield/button and the dialpad) are hidden. -->
67 <ListView android:id="@+id/dialpadChooser"
Romain Guy6304c0b2010-01-08 15:06:49 -080068 android:layout_width="match_parent"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070069 android:layout_height="1dip"
70 android:layout_weight="1"
71 />
72
73</LinearLayout>