1<?xml version="1.0" encoding="utf-8"?>
2<!--  Copyright 2024 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:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:fitsSystemWindows="true">
23
24    <com.google.android.material.progressindicator.LinearProgressIndicator
25        android:id="@+id/installer_progress"
26        android:indeterminate="true"
27        android:layout_width="wrap_content"
28        android:layout_height="wrap_content"
29        android:layout_alignParentStart="true"
30        android:visibility="invisible"
31        />
32
33    <ImageView
34        android:id="@+id/installer_terminal_icon"
35        android:layout_width="30dp"
36        android:layout_height="wrap_content"
37        android:src="@drawable/ic_terminal"
38        android:adjustViewBounds="true"
39        android:layout_alignParentStart="true"
40        android:layout_marginTop="48dp"
41        android:layout_marginHorizontal="32dp"
42        app:tint="?attr/colorPrimary" />
43
44    <TextView
45        android:id="@+id/installer_title"
46        android:layout_width="wrap_content"
47        android:layout_height="wrap_content"
48        android:singleLine="false"
49        android:text="@string/installer_title_text"
50        android:layout_below="@id/installer_terminal_icon"
51        android:layout_marginVertical="24dp"
52        android:layout_marginHorizontal="32dp"
53        android:textSize="36sp" />
54
55    <TextView
56        android:id="@+id/installer_desc"
57        android:layout_width="match_parent"
58        android:layout_height="wrap_content"
59        android:singleLine="false"
60        android:layout_below="@id/installer_title"
61        android:lineSpacingExtra="5dp"
62        android:layout_marginTop="24dp"
63        android:layout_marginHorizontal="32dp"
64        android:textSize="16sp" />
65
66    <CheckBox
67        android:id="@+id/installer_wait_for_wifi_checkbox"
68        android:layout_width="wrap_content"
69        android:layout_height="wrap_content"
70        android:textSize="16sp"
71        android:layout_marginHorizontal="42dp"
72        android:layout_above="@id/installer_install_button"
73        android:layout_alignParentEnd="true"
74        android:text="@string/installer_wait_for_wifi_checkbox_text" />
75
76    <Button
77        android:id="@+id/installer_install_button"
78        android:layout_width="wrap_content"
79        android:layout_height="wrap_content"
80        android:layout_alignParentBottom="true"
81        android:layout_alignParentEnd="true"
82        android:layout_marginBottom="32dp"
83        android:layout_marginHorizontal="40dp"
84        android:backgroundTint="?attr/colorPrimaryDark"
85        android:text="@string/installer_install_button_enabled_text" />
86</RelativeLayout>
87