blob: aee2c259793c36c438a791812b118bd68be7a8ca [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 Miyakawa64c14d32011-07-06 17:07:33 -070022 android:layout_marginLeft="8dip"
23 android:layout_marginRight="8dip" >
Nicolas Catania53f94fc2009-09-28 23:03:33 -070024
Nicolas Catania901f8562009-10-09 11:09:45 -070025 <!-- Text field above the keypad where the digits are displayed.
26 It's type is set to NULL (to disable the IME keyboard) in the
27 java code.
Daisuke Miyakawa39b4ce92011-06-29 21:13:07 -070028
29 Background drawable can be controlled programatically.
Nicolas Catania901f8562009-10-09 11:09:45 -070030 -->
Nicolas Catania53f94fc2009-09-28 23:03:33 -070031 <EditText android:id="@+id/digits"
Romain Guy6304c0b2010-01-08 15:06:49 -080032 android:layout_width="match_parent"
Daisuke Miyakawa20962612011-06-23 18:29:25 -070033 android:layout_height="@dimen/dialpad_digits_height"
Daisuke Miyakawa64c14d32011-07-06 17:07:33 -070034 android:layout_marginTop="4dip"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070035 android:gravity="center"
Daisuke Miyakawa39b4ce92011-06-29 21:13:07 -070036 android:textAppearance="@style/DialtactsDigitsTextAppearance"
Daisuke Miyakawa64c14d32011-07-06 17:07:33 -070037 android:background="@drawable/dialpad_background"
38 android:textColor="?android:attr/textColorPrimary" />
Nicolas Catania53f94fc2009-09-28 23:03:33 -070039
40 <!-- Keypad section -->
41 <include layout="@layout/dialpad" />
42
Daisuke Miyakawa64c14d32011-07-06 17:07:33 -070043 <!-- Horizontal row of buttons (Search + DialButton + Delete.) -->
Daisuke Miyakawa20962612011-06-23 18:29:25 -070044 <include layout="@layout/dialpad_additional_buttons" />
Nicolas Catania53f94fc2009-09-28 23:03:33 -070045
46 <!-- "Dialpad chooser" UI, shown only when the user brings up the
47 Dialer while a call is already in progress.
48 When this UI is visible, the other Dialer elements
49 (the textfield/button and the dialpad) are hidden. -->
50 <ListView android:id="@+id/dialpadChooser"
Romain Guy6304c0b2010-01-08 15:06:49 -080051 android:layout_width="match_parent"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070052 android:layout_height="1dip"
53 android:layout_weight="1"
54 />
55
56</LinearLayout>