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<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/emergency_shortcut_buttons_group" 19 android:layout_height="wrap_content" 20 android:layout_width="match_parent" 21 android:orientation="vertical"> 22 <FrameLayout 23 android:id="@+id/emergency_number_title_group" 24 android:layout_height="@dimen/emergency_number_title_height" 25 android:layout_width="match_parent" 26 android:layout_marginHorizontal="@dimen/emergency_number_title_group_padding_horizontal"> 27 <FrameLayout 28 android:id="@+id/emergency_number_title_container" 29 android:layout_height="wrap_content" 30 android:layout_width="@dimen/emergency_number_title_container_width" 31 android:layout_gravity="center_vertical|start"> 32 <TextView 33 android:id="@+id/emergency_number_title" 34 android:layout_height="wrap_content" 35 android:layout_width="wrap_content" 36 android:layout_gravity="start" 37 android:maxLines="2" 38 android:ellipsize="end" 39 android:lineHeight="@dimen/emergency_number_title_line_height" 40 android:textAppearance="@style/ShortcutViewHintTextAppearance" 41 android:textSize="@dimen/emergency_number_title_text_size" 42 android:text="@string/single_emergency_number_title"/> 43 </FrameLayout> 44 <LinearLayout 45 android:id="@+id/location_info" 46 android:layout_height="wrap_content" 47 android:layout_width="wrap_content" 48 android:layout_marginStart="@dimen/emergency_number_title_container_width" 49 android:layout_gravity="center_vertical|end" 50 android:gravity="center_vertical" 51 android:orientation="horizontal"> 52 <ImageView 53 android:id="@+id/location_icon" 54 android:layout_width="@dimen/location_image_width" 55 android:layout_height="@dimen/location_image_height" 56 android:src="@drawable/place_gm2_24px" 57 android:scaleType="centerInside"/> 58 <TextView 59 android:id="@+id/location_text" 60 android:layout_height="wrap_content" 61 android:layout_width="wrap_content" 62 android:layout_marginStart="@dimen/location_text_margin_start" 63 android:maxLines="2" 64 android:ellipsize="end" 65 android:lineHeight="@dimen/location_text_line_height" 66 android:textAppearance="@style/ShortcutViewHintTextAppearance" 67 android:textSize="@dimen/emergency_location_text_size"/> 68 </LinearLayout> 69 </FrameLayout> 70 <LinearLayout 71 android:id="@+id/emergency_shortcut_buttons_container" 72 android:layout_height="wrap_content" 73 android:layout_width="match_parent" 74 android:layout_marginHorizontal="@dimen/emergency_shortcut_buttons_margin_horizontal" 75 android:orientation="vertical"> 76 </LinearLayout> 77</LinearLayout> 78