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:visibility="gone" 33 android:gravity="center" 34 android:orientation="vertical"> 35 36 <ImageView 37 android:id="@+id/ux_restricted_icon" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_marginBottom="@dimen/common_margin" 41 android:contentDescription="@null" 42 android:src="@drawable/car_ic_ux_restricted" /> 43 44 <TextView 45 android:id="@+id/blocking_text" 46 android:layout_width="@dimen/blocking_text_width" 47 android:layout_height="wrap_content" 48 android:gravity="center" 49 android:text="@string/activity_blocked_text" 50 android:textAppearance="@style/ActivityBlockingActivityText" /> 51 52 <LinearLayout 53 android:id="@+id/action_button_container" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_marginTop="@dimen/activity_blocking_action_button_top_margin" 57 android:layout_gravity="center" 58 android:gravity="center_horizontal" 59 android:orientation="horizontal"> 60 <Button 61 android:id="@+id/exit_button" 62 style="@style/ButtonStyle" /> 63 64 <Button 65 android:id="@+id/toggle_debug_info" 66 style="@style/ButtonStyle" 67 android:text="@string/debug_button_text" 68 android:visibility="gone" 69 android:layout_marginStart="@dimen/activity_blocking_action_button_padding_horizontal"/> 70 71 </LinearLayout> 72 73 <TextView 74 android:id="@+id/debug_info" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:textAppearance="@style/ActivityBlockingActivityText" 78 android:visibility="gone" /> 79 80 </LinearLayout> 81 82</FrameLayout> 83