1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 (Search / Dial / Backspace) shown 18 beneath the dialpad in the emergency dialer; see emergency_dialer.xml. --> 19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/dialpadAdditionalButtons" 21 android:layout_width="match_parent" 22 android:layout_height="0px" 23 android:layout_weight="@integer/dialpad_layout_weight_additional_buttons" 24 android:layout_gravity="center_horizontal" 25 android:layout_marginTop="@dimen/dialpad_vertical_margin" 26 android:background="@drawable/dialpad_background" 27 android:orientation="horizontal"> 28 29 <!-- Placeholder for the "Search" button. 30 (This button is never visible since there's no "Search" function 31 on this screen, but we have a placeholder here just to be 32 consistent with the dialpad in DialpadFragment.) --> 33 <ImageButton android:id="@+id/searchButton" 34 android:layout_width="0px" 35 android:layout_weight="0.30" 36 android:layout_height="match_parent" 37 android:layout_gravity="center_vertical" 38 android:state_enabled="false" 39 android:background="?android:attr/selectableItemBackground" 40 android:contentDescription="@string/description_search_button" 41 android:src="@drawable/ic_dial_action_search" 42 android:visibility="invisible" 43 /> 44 45 <!-- Onscreen "Dial" button, used on all platforms by 46 default. Its usage can be disabled using resources (see 47 config.xml.) --> 48 <ImageButton android:id="@+id/dialButton" 49 android:layout_width="0px" 50 android:layout_weight="0.40" 51 android:layout_height="match_parent" 52 android:layout_gravity="center_vertical" 53 android:state_enabled="false" 54 android:background="@drawable/btn_call" 55 android:contentDescription="@string/description_dial_button" 56 android:src="@drawable/ic_dial_action_call" /> 57 58 <!-- Onscreen "Backspace/Delete" button --> 59 <ImageButton android:id="@+id/deleteButton" 60 android:layout_width="0px" 61 android:layout_weight="0.30" 62 android:layout_height="match_parent" 63 android:layout_gravity="center_vertical" 64 android:state_enabled="false" 65 android:background="?android:attr/selectableItemBackground" 66 android:contentDescription="@string/description_delete_button" 67 android:src="@drawable/ic_dial_action_delete" /> 68 </LinearLayout> 69 70