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