106 lines
5.2 KiB
XML
106 lines
5.2 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.
|
|
-->
|
|
<com.android.phone.EmergencyInfoGroup
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/emergency_info_button"
|
|
android:layout_height="@dimen/emergency_info_button_height"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginHorizontal="@dimen/emergency_shortcut_buttons_margin_horizontal"
|
|
android:layout_marginTop="@dimen/emergency_info_button_margin_top"
|
|
android:layout_marginBottom="@dimen/emergency_info_button_margin_bottom">
|
|
<FrameLayout
|
|
android:id="@+id/emergency_info_view"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:background="@drawable/btn_emergency_information"
|
|
android:focusable="true"
|
|
android:clickable="true" >
|
|
<LinearLayout
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:id="@+id/emergency_info_image"
|
|
android:layout_gravity="center_vertical|start"
|
|
android:layout_marginStart="@dimen/emergency_dialer_image_margin_start"
|
|
android:layout_marginEnd="@dimen/emergency_dialer_image_margin_end"
|
|
android:layout_height="@dimen/emergency_info_image_height"
|
|
android:layout_width="@dimen/emergency_info_image_width"
|
|
android:scaleType="centerInside"/>
|
|
<LinearLayout
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginEnd="@dimen/emergency_info_text_margin_end"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center_vertical">
|
|
<TextView
|
|
android:id="@+id/emergency_info_name"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:includeFontPadding="false"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:lineHeight="@dimen/emergency_info_name_line_height"
|
|
android:textAppearance="@style/EmergencyInfoNameTextAppearance"/>
|
|
<TextView
|
|
android:id="@+id/emergency_info_hint"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
android:lineHeight="@dimen/emergency_info_hint_line_height"
|
|
android:textAppearance="@style/EmergencyInfoHintTextAppearance"
|
|
android:text="@string/emergency_information_hint"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/emergency_info_confirm_view"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:background="@drawable/btn_emergency_confirm_information"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:visibility="invisible" >
|
|
<LinearLayout
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:id="@+id/confirmed_emergency_info_image"
|
|
android:layout_gravity="center_vertical|start"
|
|
android:layout_height="@dimen/emergency_info_image_height"
|
|
android:layout_width="@dimen/emergency_info_image_width"
|
|
android:layout_marginStart="@dimen/emergency_dialer_image_margin_start"
|
|
android:layout_marginEnd="@dimen/emergency_dialer_image_margin_end"
|
|
android:scaleType="centerInside"/>
|
|
<TextView
|
|
android:id="@+id/confirmed_emergency_info"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="@dimen/emergency_info_text_margin_end"
|
|
android:includeFontPadding="false"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
android:lineHeight="@dimen/confirmed_emergency_info_line_height"
|
|
android:textAppearance="@style/EmergencyInfoTapHintTextAppearance"
|
|
android:text="@string/emergency_information_confirm_hint"/>
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
</com.android.phone.EmergencyInfoGroup>
|