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 | |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/top" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 21 | android:orientation="vertical" |
Daisuke Miyakawa | 64c14d3 | 2011-07-06 17:07:33 -0700 | [diff] [blame] | 22 | android:layout_marginLeft="8dip" |
| 23 | android:layout_marginRight="8dip" > |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 24 | |
Daisuke Miyakawa | bd762dc | 2011-07-06 13:03:06 -0700 | [diff] [blame^] | 25 | <!-- Text field and possibly soft menu button above the keypad where |
| 26 | the digits are displayed. --> |
| 27 | <RelativeLayout |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 28 | android:layout_width="match_parent" |
Daisuke Miyakawa | 2096261 | 2011-06-23 18:29:25 -0700 | [diff] [blame] | 29 | android:layout_height="@dimen/dialpad_digits_height" |
Daisuke Miyakawa | 64c14d3 | 2011-07-06 17:07:33 -0700 | [diff] [blame] | 30 | android:layout_marginTop="4dip" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 31 | android:gravity="center" |
Daisuke Miyakawa | bd762dc | 2011-07-06 13:03:06 -0700 | [diff] [blame^] | 32 | android:background="@drawable/dialpad_background" > |
| 33 | |
| 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" |
| 43 | android:gravity="center" |
| 44 | android:textAppearance="@style/DialtactsDigitsTextAppearance" |
| 45 | android:textColor="?android:attr/textColorPrimary" /> |
| 46 | |
| 47 | <ImageButton android:id="@+id/overflow_menu" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="match_parent" |
| 50 | android:layout_alignParentRight="true" |
| 51 | android:src="@drawable/ic_menu_overflow" /> |
| 52 | |
| 53 | </RelativeLayout> |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 54 | |
| 55 | <!-- Keypad section --> |
| 56 | <include layout="@layout/dialpad" /> |
| 57 | |
Daisuke Miyakawa | 64c14d3 | 2011-07-06 17:07:33 -0700 | [diff] [blame] | 58 | <!-- Horizontal row of buttons (Search + DialButton + Delete.) --> |
Daisuke Miyakawa | 2096261 | 2011-06-23 18:29:25 -0700 | [diff] [blame] | 59 | <include layout="@layout/dialpad_additional_buttons" /> |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 60 | |
| 61 | <!-- "Dialpad chooser" UI, shown only when the user brings up the |
| 62 | Dialer while a call is already in progress. |
| 63 | When this UI is visible, the other Dialer elements |
| 64 | (the textfield/button and the dialpad) are hidden. --> |
| 65 | <ListView android:id="@+id/dialpadChooser" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 66 | android:layout_width="match_parent" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 67 | android:layout_height="1dip" |
| 68 | android:layout_weight="1" |
| 69 | /> |
| 70 | |
| 71 | </LinearLayout> |