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:id="@+id/top" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:paddingLeft="16dp" 23 android:paddingRight="16dp"> 24 25 <LinearLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:layout_gravity="bottom" 29 android:orientation="vertical"> 30 31 <!-- FrameLayout --> 32 <com.android.phone.EmergencyActionGroup 33 android:id="@+id/emergency_action_group" 34 android:layout_height="64dp" 35 android:layout_width="match_parent" 36 android:layout_marginTop="16dp" 37 android:layout_marginBottom="24dp"> 38 39 <LinearLayout 40 android:layout_width="match_parent" 41 android:layout_height="match_parent"> 42 <Button android:layout_width="0dp" 43 android:layout_height="match_parent" 44 android:layout_weight="1" 45 android:id="@+id/action1" 46 /> 47 <Button android:layout_width="0dp" 48 android:layout_height="match_parent" 49 android:layout_weight="1" 50 android:id="@+id/action2" 51 /> 52 <Button android:layout_width="0dp" 53 android:layout_height="match_parent" 54 android:layout_weight="1" 55 android:id="@+id/action3" 56 /> 57 </LinearLayout> 58 59 <FrameLayout 60 android:layout_width="match_parent" 61 android:layout_height="match_parent" 62 android:id="@+id/selected_container" 63 android:visibility="invisible" 64 android:focusable="true" 65 android:clickable="true"> 66 67 <View 68 android:layout_width="match_parent" 69 android:layout_height="match_parent" 70 android:backgroundTint="#ffe53935" 71 android:focusable="false" 72 android:clickable="false" 73 style="?android:attr/buttonStyle"/> 74 75 <View 76 android:layout_width="match_parent" 77 android:layout_height="match_parent" 78 android:id="@+id/ripple_view" 79 android:backgroundTint="#22000000" 80 android:visibility="invisible" 81 android:focusable="false" 82 android:clickable="false" 83 style="?android:attr/buttonStyle"/> 84 85 <LinearLayout 86 android:layout_width="match_parent" 87 android:layout_height="match_parent" 88 android:orientation="vertical" 89 android:focusable="false" 90 android:clickable="false" 91 android:backgroundTint="#00000000" 92 style="?android:attr/buttonStyle"> 93 <TextView 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:id="@+id/selected_label" 97 android:textAppearance="?android:attr/textAppearanceButton" /> 98 <TextView 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:id="@+id/launch_hint" 102 android:text="@string/emergency_action_launch_hint" 103 android:textStyle="italic" /> 104 </LinearLayout> 105 106 </FrameLayout> 107 108 </com.android.phone.EmergencyActionGroup> 109 110 <include layout="@layout/dialpad_view_unthemed" 111 android:theme="@style/Dialpad_Dark" /> 112 113 </LinearLayout> 114 115 <FrameLayout 116 android:id="@+id/floating_action_button_container" 117 android:layout_width="@dimen/floating_action_button_width" 118 android:layout_height="@dimen/floating_action_button_height" 119 android:layout_marginBottom="@dimen/floating_action_button_margin_bottom" 120 android:layout_gravity="center_horizontal|bottom" > 121 122 <ImageButton 123 android:id="@+id/floating_action_button" 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:layout_gravity="center" 127 android:background="@drawable/floating_action_button" 128 android:contentDescription="@string/description_dial_button" 129 android:src="@drawable/fab_ic_call"/> 130 </FrameLayout> 131 132 </FrameLayout> 133