1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<RelativeLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:tools="http://schemas.android.com/tools"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    tools:context=".RendererTerminationActivity">
23
24    <LinearLayout
25        android:id="@+id/renderer_termination_status_group"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:background="@color/colorPrimaryDark"
29        android:orientation="horizontal"
30        android:gravity="left"
31        android:layout_alignParentTop="true">
32
33        <TextView
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            android:text="Renderer status:"
37            android:textColor="@android:color/white"
38            android:textStyle="bold"
39            android:layout_weight="0"
40            android:layout_marginTop="6dp"
41            android:layout_marginBottom="6dp"
42            android:layout_marginLeft="8dp"
43            android:layout_marginRight="8dp"/>
44
45        <TextView
46            android:id="@+id/renderer_termination_status"
47            android:layout_width="0dp"
48            android:layout_height="wrap_content"
49            android:layout_weight="1"
50            android:textColor="@android:color/white"
51            android:layout_marginTop="6dp"
52            android:layout_marginBottom="6dp"
53            android:layout_marginLeft="8dp"
54            android:layout_marginRight="8dp"/>
55
56    </LinearLayout>
57
58    <Button
59        android:id="@+id/renderer_termination_terminate_button"
60        android:text="@string/renderer_termination_button_terminate_text"
61        android:layout_above="@id/renderer_termination_block_group"
62        android:layout_width="match_parent"
63        android:layout_height="wrap_content"
64        android:layout_marginTop="4dp"
65        android:layout_marginLeft="8dp"
66        android:layout_marginRight="8dp"/>
67
68    <LinearLayout
69        android:id="@+id/renderer_termination_block_group"
70        android:layout_above="@id/renderer_termination_unblock_button"
71        android:layout_width="match_parent"
72        android:layout_height="wrap_content"
73        android:orientation="horizontal"
74        android:gravity="left">
75
76        <Button
77            android:id="@+id/renderer_termination_block_button"
78            android:text="@string/renderer_termination_button_block_text"
79            android:layout_width="0dp"
80            android:layout_height="wrap_content"
81            android:layout_weight="1"
82            android:layout_marginTop="4dp"
83            android:layout_marginLeft="8dp"
84            android:layout_marginRight="8dp"/>
85
86        <Button
87            android:id="@+id/renderer_termination_block_transient_button"
88            android:text="@string/renderer_termination_button_block_transient_text"
89            android:layout_width="0dp"
90            android:layout_height="wrap_content"
91            android:layout_weight="1"
92            android:layout_marginTop="4dp"
93            android:layout_marginLeft="8dp"
94            android:layout_marginRight="8dp"/>
95    </LinearLayout>
96
97    <Button
98        android:id="@+id/renderer_termination_unblock_button"
99        android:text="@string/renderer_termination_button_unblock_text"
100        android:layout_width="match_parent"
101        android:layout_height="wrap_content"
102        android:layout_marginTop="4dp"
103        android:layout_marginLeft="8dp"
104        android:layout_marginRight="8dp"
105        android:layout_alignParentBottom="true"/>
106
107    <FrameLayout
108        android:id="@+id/renderer_termination_webview_frame"
109        android:layout_width="match_parent"
110        android:layout_height="match_parent"
111        android:layout_below="@id/renderer_termination_status_group"
112        android:layout_above="@id/renderer_termination_terminate_button">
113        <WebView
114            android:id="@+id/renderer_termination_webview"
115            android:layout_width="match_parent"
116            android:layout_height="match_parent" />
117    </FrameLayout>
118
119</RelativeLayout>
120