The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2006 The Android Open Source Project |
| 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 |
Nicolas Catania | dea164e | 2009-09-18 06:26:16 -0700 | [diff] [blame^] | 7 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Nicolas Catania | dea164e | 2009-09-18 06:26:16 -0700 | [diff] [blame^] | 9 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 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" |
| 19 | android:layout_width="fill_parent" |
| 20 | android:layout_height="fill_parent" |
| 21 | android:orientation="vertical" |
| 22 | > |
| 23 | <LinearLayout android:id="@+id/digitsAndBackspace" |
| 24 | android:layout_width="fill_parent" |
Jeff Hamilton | 66de7e7 | 2009-08-04 22:17:18 -0500 | [diff] [blame] | 25 | android:layout_height="66dip" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 26 | android:addStatesFromChildren="true" |
| 27 | android:gravity="center_vertical" |
| 28 | android:baselineAligned="false" |
Jeff Hamilton | 66de7e7 | 2009-08-04 22:17:18 -0500 | [diff] [blame] | 29 | android:layout_marginTop="3dip" |
| 30 | android:layout_marginBottom="5dip" |
| 31 | android:layout_marginLeft="3dip" |
| 32 | android:layout_marginRight="3dip" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 33 | > |
| 34 | |
| 35 | <EditText android:id="@+id/digits" |
| 36 | android:layout_width="0dip" |
| 37 | android:layout_weight="1" |
Jeff Hamilton | 66de7e7 | 2009-08-04 22:17:18 -0500 | [diff] [blame] | 38 | android:layout_height="66dip" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 39 | android:maxLines="1" |
| 40 | android:scrollHorizontally="true" |
| 41 | android:textSize="28sp" |
| 42 | android:freezesText="true" |
| 43 | android:background="@drawable/btn_dial_textfield" |
| 44 | android:textColor="@color/dialer_button_text" |
| 45 | android:hint="@string/dialerKeyboardHintText" |
| 46 | /> |
| 47 | |
| 48 | <!-- |
| 49 | The button goes at the right. |
| 50 | --> |
| 51 | <ImageButton android:id="@+id/backspace" |
| 52 | style="@android:style/Widget.Button.Inset" |
| 53 | android:src="@drawable/ic_delete_phone_number" |
| 54 | android:layout_width="wrap_content" |
Jeff Hamilton | 66de7e7 | 2009-08-04 22:17:18 -0500 | [diff] [blame] | 55 | android:layout_height="66dip" |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 56 | android:background="@drawable/btn_dial_delete" |
| 57 | android:gravity="center" |
| 58 | /> |
| 59 | |
| 60 | </LinearLayout> |
| 61 | |
Nicolas Catania | dea164e | 2009-09-18 06:26:16 -0700 | [diff] [blame^] | 62 | <!-- Horizontal row of buttons (Voicemail + DialButton + Backspace.) --> |
| 63 | <LinearLayout android:id="@+id/voicemailAndDialAndBackspace" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="fill_parent" |
| 66 | android:layout_gravity="center_horizontal" |
| 67 | android:layout_marginBottom="7dip" |
| 68 | android:orientation="horizontal"> |
| 69 | |
| 70 | <!-- Onscreen "Dial" button, used on all platforms by |
| 71 | default. Its usage can be disabled using resources (see |
| 72 | config.xml.) --> |
| 73 | <ImageButton android:id="@+id/dialButton" |
| 74 | android:layout_width="116dip" |
| 75 | android:layout_height="50dip" |
| 76 | android:layout_gravity="center_vertical" |
| 77 | android:state_enabled="false" |
| 78 | android:background="@drawable/btn_dial_action" |
| 79 | android:src="@drawable/ic_dial_action_call" /> |
| 80 | </LinearLayout> |
David Brown | 3d07e6d | 2009-08-04 20:30:09 -0700 | [diff] [blame] | 81 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 82 | <!-- "Dialpad chooser" UI, shown only when the user brings up the |
| 83 | Dialer while a call is already in progress. |
| 84 | When this UI is visible, the other Dialer elements |
| 85 | (the textfield and button) are hidden. --> |
| 86 | <ListView android:id="@+id/dialpadChooser" |
| 87 | android:layout_width="fill_parent" |
| 88 | android:layout_height="wrap_content" |
| 89 | android:footerDividersEnabled="true" |
| 90 | /> |
| 91 | |
| 92 | </LinearLayout> |