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 | 2199251 | 2011-08-08 09:09:53 -0700 | [diff] [blame] | 22 | android:paddingLeft="@dimen/dialpad_horizontal_margin" |
| 23 | android:paddingRight="@dimen/dialpad_horizontal_margin"> |
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. --> |
Mindy Pereira | f81b781 | 2011-10-10 15:43:07 -0700 | [diff] [blame] | 27 | <LinearLayout |
Daisuke Miyakawa | 1185d1a | 2011-08-18 13:41:31 -0700 | [diff] [blame] | 28 | android:id="@+id/digits_container" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Daisuke Miyakawa | 2199251 | 2011-08-08 09:09:53 -0700 | [diff] [blame] | 30 | android:layout_height="0px" |
Daisuke Miyakawa | e4e3795 | 2011-10-13 10:49:54 -0700 | [diff] [blame] | 31 | android:layout_weight="@integer/dialpad_layout_weight_digits" |
Daisuke Miyakawa | 2199251 | 2011-08-08 09:09:53 -0700 | [diff] [blame] | 32 | android:layout_marginTop="@dimen/dialpad_vertical_margin" |
Daisuke Miyakawa | 2c6aa79 | 2011-09-13 15:34:53 -0700 | [diff] [blame] | 33 | android:gravity="center" |
| 34 | android:background="@drawable/dialpad_background" > |
Daisuke Miyakawa | bd762dc | 2011-07-06 13:03:06 -0700 | [diff] [blame] | 35 | |
Daisuke Miyakawa | de15823 | 2011-08-15 12:26:55 -0700 | [diff] [blame] | 36 | <com.android.contacts.dialpad.DigitsEditText |
| 37 | android:id="@+id/digits" |
Mindy Pereira | f81b781 | 2011-10-10 15:43:07 -0700 | [diff] [blame] | 38 | android:layout_width="0dip" |
| 39 | android:layout_weight="1" |
Daisuke Miyakawa | bd762dc | 2011-07-06 13:03:06 -0700 | [diff] [blame] | 40 | android:layout_height="match_parent" |
Daisuke Miyakawa | bd762dc | 2011-07-06 13:03:06 -0700 | [diff] [blame] | 41 | android:gravity="center" |
| 42 | android:textAppearance="@style/DialtactsDigitsTextAppearance" |
Daisuke Miyakawa | 2c6aa79 | 2011-09-13 15:34:53 -0700 | [diff] [blame] | 43 | android:textColor="?android:attr/textColorPrimary" |
| 44 | android:nextFocusRight="@+id/overflow_menu" |
| 45 | android:background="@android:color/transparent" /> |
Daisuke Miyakawa | bd762dc | 2011-07-06 13:03:06 -0700 | [diff] [blame] | 46 | |
Daisuke Miyakawa | 2c6aa79 | 2011-09-13 15:34:53 -0700 | [diff] [blame] | 47 | <ImageButton |
Daisuke Miyakawa | 9021706 | 2012-02-16 10:40:38 -0800 | [diff] [blame] | 48 | android:id="@+id/deleteButton" |
| 49 | android:layout_width="56dip" |
Daisuke Miyakawa | bd762dc | 2011-07-06 13:03:06 -0700 | [diff] [blame] | 50 | android:layout_height="match_parent" |
Daisuke Miyakawa | 9021706 | 2012-02-16 10:40:38 -0800 | [diff] [blame] | 51 | android:layout_gravity="center_vertical" |
| 52 | android:gravity="center" |
| 53 | android:state_enabled="false" |
| 54 | android:background="?android:attr/selectableItemBackground" |
| 55 | android:contentDescription="@string/description_delete_button" |
| 56 | android:src="@drawable/ic_dial_action_delete" /> |
Mindy Pereira | f81b781 | 2011-10-10 15:43:07 -0700 | [diff] [blame] | 57 | </LinearLayout> |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 58 | |
| 59 | <!-- Keypad section --> |
| 60 | <include layout="@layout/dialpad" /> |
| 61 | |
Daisuke Miyakawa | 8fcc4cf | 2011-09-15 19:00:25 -0700 | [diff] [blame] | 62 | <View |
| 63 | android:layout_width="match_parent" |
| 64 | android:layout_height="@dimen/dialpad_vertical_margin" |
| 65 | android:background="#66000000"/> |
| 66 | |
Daisuke Miyakawa | 9021706 | 2012-02-16 10:40:38 -0800 | [diff] [blame] | 67 | <LinearLayout |
| 68 | android:id="@+id/dialButtonContainer" |
| 69 | android:layout_width="match_parent" |
| 70 | android:layout_height="0px" |
| 71 | android:layout_weight="@integer/dialpad_layout_weight_additional_buttons" |
| 72 | android:layout_gravity="center_horizontal" |
| 73 | android:background="@drawable/dialpad_background"> |
| 74 | <ImageButton |
| 75 | android:id="@+id/searchButton" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="?android:attr/actionBarSize" |
| 78 | android:layout_gravity="bottom|center_horizontal" |
| 79 | android:state_enabled="false" |
| 80 | android:background="?android:attr/selectableItemBackground" |
| 81 | android:contentDescription="@string/description_search_button" |
| 82 | android:src="@drawable/ic_dial_action_search"/> |
| 83 | |
| 84 | <ImageButton |
| 85 | android:id="@+id/dialButton" |
| 86 | android:layout_width="0px" |
| 87 | android:layout_weight="1" |
| 88 | android:layout_height="match_parent" |
| 89 | android:layout_gravity="center" |
| 90 | android:state_enabled="false" |
| 91 | android:background="@drawable/btn_call" |
| 92 | android:contentDescription="@string/description_dial_button" |
| 93 | android:src="@drawable/ic_dial_action_call" /> |
| 94 | |
| 95 | <ImageButton |
| 96 | android:id="@+id/overflow_menu" |
| 97 | android:layout_width="wrap_content" |
| 98 | android:layout_height="?android:attr/actionBarSize" |
| 99 | android:layout_gravity="bottom|center_horizontal" |
| 100 | android:src="@drawable/ic_menu_overflow" |
Daisuke Miyakawa | 962e733 | 2012-03-07 14:17:21 -0800 | [diff] [blame] | 101 | android:contentDescription="@string/action_menu_overflow_description" |
Daisuke Miyakawa | 9021706 | 2012-02-16 10:40:38 -0800 | [diff] [blame] | 102 | android:nextFocusLeft="@id/digits" |
| 103 | android:background="?android:attr/selectableItemBackground"/> |
| 104 | </LinearLayout> |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 105 | |
| 106 | <!-- "Dialpad chooser" UI, shown only when the user brings up the |
| 107 | Dialer while a call is already in progress. |
| 108 | When this UI is visible, the other Dialer elements |
| 109 | (the textfield/button and the dialpad) are hidden. --> |
| 110 | <ListView android:id="@+id/dialpadChooser" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 111 | android:layout_width="match_parent" |
Nicolas Catania | 53f94fc | 2009-09-28 23:03:33 -0700 | [diff] [blame] | 112 | android:layout_height="1dip" |
| 113 | android:layout_weight="1" |
| 114 | /> |
| 115 | |
| 116 | </LinearLayout> |