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 17<!-- Layout for the emergency dialer; see EmergencyDialer.java. --> 18<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <!-- Emergency dialer shortcuts layout--> 23 <FrameLayout 24 android:id="@+id/emergency_dialer_shortcuts" 25 android:accessibilityPaneTitle="@string/emergencyDialerIconLabel" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:visibility="gone"> 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:orientation="vertical"> 33 <include layout="@layout/emergency_information"/> 34 <include layout="@layout/emergency_shortcut_buttons_group"/> 35 </LinearLayout> 36 37 <FrameLayout 38 android:id="@+id/dialpad_button_container" 39 android:layout_height="wrap_content" 40 android:layout_width="wrap_content" 41 android:layout_gravity="bottom|center" 42 android:layout_marginBottom="@dimen/emergency_dialer_dialpad_button_margin"> 43 <ImageButton 44 android:id="@+id/floating_action_button_dialpad" 45 android:layout_width="@dimen/dialpad_button_width" 46 android:layout_height="@dimen/dialpad_button_height" 47 android:background="@drawable/floating_action_button_red" 48 android:contentDescription="@string/description_dialpad_button" 49 android:src="@drawable/ic_dialpad_white_24" 50 android:scaleType="centerInside" 51 android:backgroundTint="@color/emergency_dialpad_fab_tint_color"/> 52 </FrameLayout> 53 </FrameLayout> 54 55 <!--Emergency Dialer Layout--> 56 <FrameLayout 57 android:id="@+id/emergency_dialer" 58 android:accessibilityPaneTitle="@string/pane_title_emergency_dialpad" 59 android:layout_width="match_parent" 60 android:layout_height="match_parent" 61 android:paddingBottom="@dimen/dialpad_bottom_padding" 62 android:visibility="visible"> 63 <LinearLayout 64 android:layout_width="match_parent" 65 android:layout_height="match_parent" 66 android:layout_gravity="bottom" 67 android:orientation="vertical"> 68 69 <include layout="@layout/emergency_information"/> 70 <Space 71 android:id="@+id/emergency_info_dialpad_spacer" 72 android:layout_width="match_parent" 73 android:layout_height="0dp" 74 android:layout_weight="1"/> 75 <include layout="@layout/dialpad_view_unthemed" 76 android:layout_height="wrap_content" 77 android:layout_width="match_parent" 78 android:theme="?attr/dialpadTheme" /> 79 80 </LinearLayout> 81 82 <Space 83 android:id="@+id/floating_action_button_margin_bottom" 84 android:layout_width="match_parent" 85 android:layout_height="@dimen/floating_action_button_margin_bottom" 86 android:layout_alignParentBottom="true"/> 87 88 <FrameLayout 89 android:id="@+id/floating_action_button_container" 90 android:layout_width="@dimen/floating_action_button_width" 91 android:layout_height="@dimen/floating_action_button_height" 92 android:layout_gravity="center_horizontal|bottom" > 93 94 <ImageButton 95 android:id="@+id/floating_action_button" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:layout_gravity="center" 99 android:background="@drawable/floating_action_button" 100 android:contentDescription="@string/description_dial_button" 101 android:src="@drawable/fab_ic_call"/> 102 </FrameLayout> 103 104 </FrameLayout> 105 106</FrameLayout> 107