| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2020 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:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:paddingVertical="48dp" |
| android:orientation="vertical" |
| android:background="@android:color/black"> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="16dp" |
| android:text="@string/emergency_action_title" |
| android:fontFamily="sans-serif" |
| android:textSize="24sp" |
| android:lineHeight="32dp" |
| android:textColor="@color/emergency_action_accent" |
| android:textAlignment="center"/> |
| |
| <TextView |
| android:id="@+id/subtitle" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="16dp" |
| android:layout_marginHorizontal="40dp" |
| android:text="@string/emergency_action_subtitle" |
| android:fontFamily="sans-serif" |
| android:textSize="16sp" |
| android:lineHeight="24dp" |
| android:textColor="@color/emergency_action_subtitle_color" |
| android:textAlignment="center"/> |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1"> |
| |
| <com.android.emergency.widgets.countdown.CountDownAnimationView |
| android:id="@+id/count_down_view" |
| android:layout_width="178dp" |
| android:layout_height="178dp" |
| android:layout_gravity="center"/> |
| </FrameLayout> |
| |
| <Button |
| android:id="@+id/btn_cancel" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:layout_marginHorizontal="48dp" |
| android:padding="32dp" |
| android:text="@string/cancel" |
| android:textAllCaps="false" |
| android:fontFamily="sans-serif" |
| android:textSize="20sp" |
| android:lineHeight="28dp" |
| android:textColor="@color/emergency_action_subtitle_color" |
| android:background="@drawable/bg_cancel_btn"/> |
| |
| </LinearLayout> |