Sai Cheemalapati | 13b8948 | 2014-06-19 12:33:34 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2014 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 |
| 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 | <view class="com.android.phone.common.dialpad.DialpadView" |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/dialpad_view" |
| 19 | android:layout_height="match_parent" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_gravity="bottom" |
| 22 | android:orientation="vertical" |
| 23 | android:layoutDirection="ltr" |
| 24 | android:background="@color/background_dialpad" |
| 25 | android:clickable="true" > |
| 26 | |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 27 | <!-- Text field where call rate is displayed for ILD calls. --> |
Evan Charlton | 0830cf6 | 2014-11-18 13:20:04 -0800 | [diff] [blame^] | 28 | <LinearLayout |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 29 | android:id="@+id/rate_container" |
| 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
Evan Charlton | 0830cf6 | 2014-11-18 13:20:04 -0800 | [diff] [blame^] | 32 | android:orientation="vertical" |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 33 | android:visibility="gone"> |
| 34 | |
Evan Charlton | 0830cf6 | 2014-11-18 13:20:04 -0800 | [diff] [blame^] | 35 | <LinearLayout |
| 36 | android:id="@+id/ild_container" |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 37 | android:layout_width="wrap_content" |
| 38 | android:layout_height="wrap_content" |
Evan Charlton | 0830cf6 | 2014-11-18 13:20:04 -0800 | [diff] [blame^] | 39 | android:orientation="horizontal" |
| 40 | android:layout_gravity="center_horizontal" |
| 41 | android:layout_marginTop="@dimen/ild_margin_height" |
| 42 | android:layout_marginBottom="@dimen/ild_margin_height"> |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 43 | |
Evan Charlton | 0830cf6 | 2014-11-18 13:20:04 -0800 | [diff] [blame^] | 44 | <TextView android:id="@+id/ild_country" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" /> |
| 47 | |
| 48 | <TextView android:id="@+id/ild_rate" |
| 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="wrap_content" |
| 51 | android:layout_marginStart="4dp" |
| 52 | android:textStyle="bold" /> |
| 53 | |
| 54 | </LinearLayout> |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 55 | |
| 56 | <View |
| 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="1dp" |
Evan Charlton | 0830cf6 | 2014-11-18 13:20:04 -0800 | [diff] [blame^] | 59 | android:background="#e3e3e3" /> |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 60 | |
Evan Charlton | 0830cf6 | 2014-11-18 13:20:04 -0800 | [diff] [blame^] | 61 | </LinearLayout> |
Evan Charlton | 972e873 | 2014-11-08 08:36:56 -0800 | [diff] [blame] | 62 | |
Sai Cheemalapati | 13b8948 | 2014-06-19 12:33:34 -0700 | [diff] [blame] | 63 | <!-- Text field and possibly soft menu button above the keypad where |
| 64 | the digits are displayed. --> |
| 65 | <LinearLayout |
| 66 | android:id="@+id/digits_container" |
| 67 | android:layout_width="match_parent" |
| 68 | android:layout_height="@dimen/dialpad_digits_height" |
| 69 | android:orientation="horizontal"> |
| 70 | |
| 71 | <ImageButton android:id="@+id/dialpad_overflow" |
| 72 | android:background="@drawable/btn_dialpad_key" |
| 73 | android:src="@drawable/ic_overflow_menu" |
| 74 | android:tint="@color/dialpad_icon_tint" |
| 75 | android:layout_width="wrap_content" |
| 76 | android:layout_height="match_parent" |
Yorke Lee | 86cd19e | 2014-07-15 16:03:25 -0700 | [diff] [blame] | 77 | android:layout_margin="@dimen/dialpad_overflow_margin" |
Nancy Chen | 9764a82 | 2014-07-29 14:34:52 -0700 | [diff] [blame] | 78 | android:paddingLeft="@dimen/dialpad_digits_menu_left_padding" |
Sai Cheemalapati | 13b8948 | 2014-06-19 12:33:34 -0700 | [diff] [blame] | 79 | android:paddingRight="@dimen/dialpad_digits_menu_right_padding" |
| 80 | android:contentDescription="@string/description_dialpad_overflow" |
| 81 | android:gravity="center" |
Nancy Chen | 15b1df1 | 2014-07-30 11:26:11 -0700 | [diff] [blame] | 82 | android:visibility="invisible" /> |
Sai Cheemalapati | 13b8948 | 2014-06-19 12:33:34 -0700 | [diff] [blame] | 83 | |
| 84 | <view class="com.android.phone.common.dialpad.DigitsEditText" |
Sai Cheemalapati | 9a17f0e | 2014-06-23 11:30:45 -0700 | [diff] [blame] | 85 | xmlns:ex="http://schemas.android.com/apk/res-auto" |
Sai Cheemalapati | 13b8948 | 2014-06-19 12:33:34 -0700 | [diff] [blame] | 86 | android:id="@+id/digits" |
| 87 | android:layout_width="0dp" |
| 88 | android:layout_height="match_parent" |
| 89 | android:scrollHorizontally="true" |
| 90 | android:singleLine="true" |
| 91 | android:layout_weight="1" |
| 92 | android:gravity="center" |
| 93 | android:background="@android:color/transparent" |
| 94 | android:maxLines="1" |
| 95 | android:textSize="@dimen/dialpad_digits_text_size" |
| 96 | android:freezesText="true" |
| 97 | android:focusableInTouchMode="true" |
| 98 | android:cursorVisible="false" |
| 99 | android:textColor="@color/dialpad_digits_text_color" |
| 100 | android:textCursorDrawable="@null" |
| 101 | android:fontFamily="sans-serif-light" |
Sai Cheemalapati | 9a17f0e | 2014-06-23 11:30:45 -0700 | [diff] [blame] | 102 | android:textStyle="normal" |
| 103 | ex:resizing_text_min_size="@dimen/dialpad_digits_text_min_size" /> |
Sai Cheemalapati | 13b8948 | 2014-06-19 12:33:34 -0700 | [diff] [blame] | 104 | |
| 105 | <ImageButton |
| 106 | android:id="@+id/deleteButton" |
| 107 | android:background="@drawable/btn_dialpad_key" |
| 108 | android:tint="@color/dialpad_icon_tint" |
| 109 | android:paddingLeft="@dimen/dialpad_digits_padding" |
| 110 | android:paddingRight="@dimen/dialpad_digits_padding" |
| 111 | android:layout_width="wrap_content" |
| 112 | android:layout_height="match_parent" |
| 113 | android:state_enabled="false" |
| 114 | android:contentDescription="@string/description_delete_button" |
| 115 | android:src="@drawable/ic_dialpad_delete" /> |
| 116 | </LinearLayout> |
| 117 | |
| 118 | <View |
| 119 | android:layout_width="match_parent" |
| 120 | android:layout_height="1dp" |
| 121 | android:background="#e3e3e3" /> |
| 122 | |
| 123 | <Space |
| 124 | android:layout_width="match_parent" |
Brian Attwell | 1b8e8d7 | 2014-09-11 16:34:47 -0700 | [diff] [blame] | 125 | android:layout_height="@dimen/dialpad_space_above_keys" /> |
Sai Cheemalapati | 13b8948 | 2014-06-19 12:33:34 -0700 | [diff] [blame] | 126 | |
| 127 | <include layout="@layout/dialpad" /> |
| 128 | |
| 129 | <Space |
| 130 | android:layout_width="match_parent" |
| 131 | android:layout_height="8dp" /> |
| 132 | |
| 133 | </view> |