Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
David Brown | 285fdc6 | 2011-05-10 21:48:40 -0700 | [diff] [blame^] | 2 | <!-- Copyright (C) 2011 The Android Open Source Project |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 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 | |
Daniel Lehmann | 2028eb0 | 2011-04-07 21:04:48 -0700 | [diff] [blame] | 17 | <!-- TODO (stopship) We don't want to specify a background color here. For now we just |
| 18 | keep it because otherwise the dialer needs some imagination to use (white on white) --> |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 19 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/top" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 23 | android:orientation="vertical" |
Daniel Lehmann | 2028eb0 | 2011-04-07 21:04:48 -0700 | [diff] [blame] | 24 | android:background="@android:color/black" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 25 | > |
| 26 | |
Nicolas Catania | 901f856 | 2009-10-09 11:09:45 -0700 | [diff] [blame] | 27 | <!-- 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 Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 31 | <!-- TODO: Use a textAppearance to control the display of the number --> |
| 32 | <EditText android:id="@+id/digits" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 33 | android:layout_width="match_parent" |
David Brown | 285fdc6 | 2011-05-10 21:48:40 -0700 | [diff] [blame^] | 34 | android:layout_height="67dip" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 35 | android:gravity="center" |
| 36 | android:maxLines="1" |
| 37 | android:scrollHorizontally="true" |
David Brown | 285fdc6 | 2011-05-10 21:48:40 -0700 | [diff] [blame^] | 38 | android:textSize="33sp" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 39 | android:freezesText="true" |
| 40 | android:background="@drawable/btn_dial_textfield" |
| 41 | android:textColor="@color/dialer_button_text" |
Nicolas Catania | 3040fa3 | 2009-10-01 13:00:53 -0700 | [diff] [blame] | 42 | android:focusableInTouchMode="true" |
| 43 | android:editable="true" |
| 44 | android:cursorVisible="false" |
Nicolas Catania | 7a26b27 | 2009-10-20 12:36:32 -0700 | [diff] [blame] | 45 | android:layout_weight="0" |
David Brown | 285fdc6 | 2011-05-10 21:48:40 -0700 | [diff] [blame^] | 46 | android:contentDescription="@string/description_digits_edittext" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 47 | /> |
| 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 Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 60 | android:layout_width="match_parent" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 61 | android:layout_height="1dip" |
| 62 | android:layout_weight="1" |
| 63 | /> |
| 64 | |
| 65 | </LinearLayout> |