blob: 0c10016ce1257fcd00b397c5c4d1d95e4f0a1fbb [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 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:orientation="vertical"
android:background="@color/activity_blocking_activity_background"
android:gravity="center">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center">
<ImageView
android:id="@+id/blocked_app_icon"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
<TextView
android:id="@+id/blocked_app_name"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginStart="@dimen/common_margin"
android:textColor="@color/blocking_text"
android:textAppearance="@style/ActivityBlockingActivityText" />
</LinearLayout>
<TextView
android:id="@+id/blocking_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/common_margin"
android:gravity="center"
android:textAppearance="@style/ActivityBlockingActivityText" />
<!-- Show exit button if we need to (and are able to) restart the blocked task -->
<TextView
android:id="@+id/exit_button_message"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/common_margin"
android:textAppearance="@style/ActivityBlockingActivityText" />
<Button
android:id="@+id/exit_button"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/common_margin"
android:text="@string/exit_button"
style="@style/ButtonStyle"/>
<!-- Widgets to display debug info. They should not show for non-user build. -->
<Button
android:id="@+id/toggle_debug_info"
android:visibility="gone"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/common_margin"
android:text="@string/debug_button_text"
style="@style/ButtonStyle"/>
<TextView
android:id="@+id/debug_info"
android:visibility="gone"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/common_margin"
android:textAppearance="@style/ActivityBlockingActivityText" />
</LinearLayout>