blob: c516bd8395af96f9c2d7ce3142eb75147d76e730 [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
Daniel Lehmann2028eb02011-04-07 21:04:48 -070017<!-- TODO (stopship) We don't want to specify a background color here. For now we just
18keep it because otherwise the dialer needs some imagination to use (white on white) -->
Nicolas Catania53f94fc2009-09-28 23:03:33 -070019<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/top"
Romain Guy6304c0b2010-01-08 15:06:49 -080021 android:layout_width="match_parent"
22 android:layout_height="match_parent"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070023 android:orientation="vertical"
Daniel Lehmann2028eb02011-04-07 21:04:48 -070024 android:background="@android:color/black"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070025>
26
Nicolas Catania901f8562009-10-09 11:09:45 -070027 <!-- Text field above the keypad where the digits are displayed.
28 It's type is set to NULL (to disable the IME keyboard) in the
29 java code.
30 -->
Nicolas Catania53f94fc2009-09-28 23:03:33 -070031 <!-- TODO: Use a textAppearance to control the display of the number -->
32 <EditText android:id="@+id/digits"
Romain Guy6304c0b2010-01-08 15:06:49 -080033 android:layout_width="match_parent"
David Brown285fdc62011-05-10 21:48:40 -070034 android:layout_height="67dip"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070035 android:gravity="center"
36 android:maxLines="1"
37 android:scrollHorizontally="true"
David Brown285fdc62011-05-10 21:48:40 -070038 android:textSize="33sp"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070039 android:freezesText="true"
40 android:background="@drawable/btn_dial_textfield"
41 android:textColor="@color/dialer_button_text"
Nicolas Catania3040fa32009-10-01 13:00:53 -070042 android:focusableInTouchMode="true"
43 android:editable="true"
44 android:cursorVisible="false"
Nicolas Catania7a26b272009-10-20 12:36:32 -070045 android:layout_weight="0"
David Brown285fdc62011-05-10 21:48:40 -070046 android:contentDescription="@string/description_digits_edittext"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070047 />
48
49 <!-- Keypad section -->
50 <include layout="@layout/dialpad" />
51
52 <!-- Horizontal row of buttons (Voicemail + DialButton + Delete.) -->
53 <include layout="@layout/voicemail_dial_delete" />
54
55 <!-- "Dialpad chooser" UI, shown only when the user brings up the
56 Dialer while a call is already in progress.
57 When this UI is visible, the other Dialer elements
58 (the textfield/button and the dialpad) are hidden. -->
59 <ListView android:id="@+id/dialpadChooser"
Romain Guy6304c0b2010-01-08 15:06:49 -080060 android:layout_width="match_parent"
Nicolas Catania53f94fc2009-09-28 23:03:33 -070061 android:layout_height="1dip"
62 android:layout_weight="1"
63 />
64
65</LinearLayout>