1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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<com.android.phone.EmergencyInfoGroup 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/emergency_info_button" 19 android:layout_height="@dimen/emergency_info_button_height" 20 android:layout_width="match_parent" 21 android:layout_marginHorizontal="@dimen/emergency_shortcut_buttons_margin_horizontal" 22 android:layout_marginTop="@dimen/emergency_info_button_margin_top" 23 android:layout_marginBottom="@dimen/emergency_info_button_margin_bottom"> 24 <FrameLayout 25 android:id="@+id/emergency_info_view" 26 android:layout_height="match_parent" 27 android:layout_width="match_parent" 28 android:background="@drawable/btn_emergency_information" 29 android:focusable="true" 30 android:clickable="true" > 31 <LinearLayout 32 android:layout_height="match_parent" 33 android:layout_width="match_parent" 34 android:orientation="horizontal"> 35 <ImageView 36 android:id="@+id/emergency_info_image" 37 android:layout_gravity="center_vertical|start" 38 android:layout_marginStart="@dimen/emergency_dialer_image_margin_start" 39 android:layout_marginEnd="@dimen/emergency_dialer_image_margin_end" 40 android:layout_height="@dimen/emergency_info_image_height" 41 android:layout_width="@dimen/emergency_info_image_width" 42 android:scaleType="centerInside"/> 43 <LinearLayout 44 android:layout_height="wrap_content" 45 android:layout_width="match_parent" 46 android:layout_marginEnd="@dimen/emergency_info_text_margin_end" 47 android:orientation="vertical" 48 android:layout_gravity="center_vertical"> 49 <TextView 50 android:id="@+id/emergency_info_name" 51 android:layout_height="wrap_content" 52 android:layout_width="wrap_content" 53 android:includeFontPadding="false" 54 android:maxLines="1" 55 android:ellipsize="end" 56 android:lineHeight="@dimen/emergency_info_name_line_height" 57 android:textAppearance="@style/EmergencyInfoNameTextAppearance"/> 58 <TextView 59 android:id="@+id/emergency_info_hint" 60 android:layout_height="wrap_content" 61 android:layout_width="wrap_content" 62 android:maxLines="2" 63 android:ellipsize="end" 64 android:lineHeight="@dimen/emergency_info_hint_line_height" 65 android:textAppearance="@style/EmergencyInfoHintTextAppearance" 66 android:text="@string/emergency_information_hint"/> 67 </LinearLayout> 68 </LinearLayout> 69 </FrameLayout> 70 71 <FrameLayout 72 android:id="@+id/emergency_info_confirm_view" 73 android:layout_height="match_parent" 74 android:layout_width="match_parent" 75 android:background="@drawable/btn_emergency_confirm_information" 76 android:focusable="true" 77 android:clickable="true" 78 android:visibility="invisible" > 79 <LinearLayout 80 android:layout_height="match_parent" 81 android:layout_width="match_parent" 82 android:orientation="horizontal"> 83 <ImageView 84 android:id="@+id/confirmed_emergency_info_image" 85 android:layout_gravity="center_vertical|start" 86 android:layout_height="@dimen/emergency_info_image_height" 87 android:layout_width="@dimen/emergency_info_image_width" 88 android:layout_marginStart="@dimen/emergency_dialer_image_margin_start" 89 android:layout_marginEnd="@dimen/emergency_dialer_image_margin_end" 90 android:scaleType="centerInside"/> 91 <TextView 92 android:id="@+id/confirmed_emergency_info" 93 android:layout_height="wrap_content" 94 android:layout_width="wrap_content" 95 android:layout_gravity="center_vertical" 96 android:layout_marginEnd="@dimen/emergency_info_text_margin_end" 97 android:includeFontPadding="false" 98 android:maxLines="2" 99 android:ellipsize="end" 100 android:lineHeight="@dimen/confirmed_emergency_info_line_height" 101 android:textAppearance="@style/EmergencyInfoTapHintTextAppearance" 102 android:text="@string/emergency_information_confirm_hint"/> 103 </LinearLayout> 104 </FrameLayout> 105</com.android.phone.EmergencyInfoGroup> 106