1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2009 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 17 <!-- Horizontal row of buttons: Voicemail + DialButton + Delete (aka 'torpedo') 18 for the emergency dialer: The voicemail icon is dimmed down to 33%. 19 20 Tall screen version with taller buttons and more padding between the dialpad: 21 22 In long layouts the vertical padding between the last dialpad row 23 and the torpedo is twice the amount of padding between the dialpad's 24 buttons: 2x12dip = 24dip. 25 However the dialpad's last row already specified 6dip of bottom padding 26 so here we pick up the remainder: 18dip. 27 28 The enclosing LinearLayout has a layout_weight of 1 which controls 29 how much the remaining free space will be placed below the torpedo. 30 --> 31 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 32 android:id="@+id/voicemailAndDialAndDelete" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_gravity="center_horizontal" 36 android:layout_weight="1" 37 android:paddingTop="18dip" 38 android:orientation="horizontal"> 39 40 <!-- Onscreen "Voicemail" button. The background is hardcoded to 41 disable and the foreground has been dimmed down to 30%. The 42 width is 75 (from the mocks) + 12 of padding from the 9patch, 43 total is 87. 44 --> 45 <ImageButton android:id="@+id/voicemailButton" 46 android:layout_width="87dip" 47 android:layout_height="58dip" 48 android:layout_gravity="center_vertical|top" 49 android:state_enabled="false" 50 android:background="@drawable/btn_dial_action_left_disable" 51 android:tint="#ff555555" 52 android:src="@drawable/ic_dial_action_voice_mail" /> 53 54 <!-- Onscreen "Dial" button, used on all platforms by 55 default. Its usage can be disabled using resources (see 56 config.xml.) --> 57 <ImageButton android:id="@+id/dialButton" 58 android:layout_width="116dip" 59 android:layout_height="58dip" 60 android:layout_gravity="center_vertical|top" 61 android:state_enabled="false" 62 android:background="@drawable/btn_dial_action" 63 android:src="@drawable/ic_dial_action_call" /> 64 65 <!-- Onscreen "Backspace/Delete" button 66 The width is 75 (from the mocks) + 12 of padding from the 67 9patch, total is 87. 68 --> 69 <ImageButton android:id="@+id/deleteButton" 70 android:layout_width="87dip" 71 android:layout_height="58dip" 72 android:layout_gravity="center_vertical|top" 73 android:state_enabled="false" 74 android:background="@drawable/btn_dial_delete" 75 android:src="@drawable/ic_dial_action_delete" /> 76 </LinearLayout> 77 78