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