78 lines
3.7 KiB
XML
78 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2018 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/emergency_shortcut_buttons_group"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical">
|
|
<FrameLayout
|
|
android:id="@+id/emergency_number_title_group"
|
|
android:layout_height="@dimen/emergency_number_title_height"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginHorizontal="@dimen/emergency_number_title_group_padding_horizontal">
|
|
<FrameLayout
|
|
android:id="@+id/emergency_number_title_container"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="@dimen/emergency_number_title_container_width"
|
|
android:layout_gravity="center_vertical|start">
|
|
<TextView
|
|
android:id="@+id/emergency_number_title"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
android:lineHeight="@dimen/emergency_number_title_line_height"
|
|
android:textAppearance="@style/ShortcutViewHintTextAppearance"
|
|
android:textSize="@dimen/emergency_number_title_text_size"
|
|
android:text="@string/single_emergency_number_title"/>
|
|
</FrameLayout>
|
|
<LinearLayout
|
|
android:id="@+id/location_info"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_marginStart="@dimen/emergency_number_title_container_width"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:id="@+id/location_icon"
|
|
android:layout_width="@dimen/location_image_width"
|
|
android:layout_height="@dimen/location_image_height"
|
|
android:src="@drawable/place_gm2_24px"
|
|
android:scaleType="centerInside"/>
|
|
<TextView
|
|
android:id="@+id/location_text"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_marginStart="@dimen/location_text_margin_start"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
android:lineHeight="@dimen/location_text_line_height"
|
|
android:textAppearance="@style/ShortcutViewHintTextAppearance"
|
|
android:textSize="@dimen/emergency_location_text_size"/>
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
<LinearLayout
|
|
android:id="@+id/emergency_shortcut_buttons_container"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginHorizontal="@dimen/emergency_shortcut_buttons_margin_horizontal"
|
|
android:orientation="vertical">
|
|
</LinearLayout>
|
|
</LinearLayout>
|