1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <android.opengl.GLSurfaceView 23 android:id="@+id/blurred_surface_view" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" /> 26 27 <LinearLayout 28 android:id="@+id/activity_blocking_content" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:background="@color/activity_blocking_activity_background" 32 android:gravity="center" 33 android:orientation="vertical"> 34 35 <ImageView 36 android:id="@+id/ux_restricted_icon" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_marginBottom="@dimen/common_margin" 40 android:contentDescription="@null" 41 android:src="@drawable/car_ic_ux_restricted" /> 42 43 <TextView 44 android:id="@+id/blocking_text" 45 android:layout_width="@dimen/blocking_text_width" 46 android:layout_height="wrap_content" 47 android:gravity="center" 48 android:text="@string/activity_blocked_text" 49 android:textAppearance="@style/ActivityBlockingActivityText" /> 50 51 <LinearLayout 52 android:id="@+id/action_button_container" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_marginTop="@dimen/activity_blocking_action_button_top_margin" 56 android:layout_gravity="center" 57 android:gravity="center_horizontal" 58 android:orientation="horizontal"> 59 <Button 60 android:id="@+id/exit_button" 61 style="@style/ButtonStyle" /> 62 63 <Button 64 android:id="@+id/toggle_debug_info" 65 style="@style/ButtonStyle" 66 android:text="@string/debug_button_text" 67 android:visibility="gone" 68 android:layout_marginStart="@dimen/activity_blocking_action_button_padding_horizontal"/> 69 70 </LinearLayout> 71 72 <TextView 73 android:id="@+id/debug_info" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:textAppearance="@style/ActivityBlockingActivityText" 77 android:visibility="gone" /> 78 79 </LinearLayout> 80 81</FrameLayout> 82