summaryrefslogtreecommitdiff
path: root/main/src/ui/res/layout/minimalui.xml
blob: 348d5332b66995853302f688bb0c402f75b03fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (c) 2012-2023 Arne Schwabe
  ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
  -->

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="20sp">

    <TextView
            android:id="@+id/minimal_ui_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="@dimen/stdpadding"

            android:drawablePadding="@dimen/stdpadding"
            android:textIsSelectable="true"
            android:text="Connect/Disconnect the default VPN"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            android:textAllCaps="true"
            android:background="@drawable/button_background"
            app:layout_constraintTop_toTopOf="parent"
            />

    <TextView
            android:id="@+id/notification_permission"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="@dimen/stdpadding"
            android:drawableStart="@drawable/notifications"
            android:drawablePadding="@dimen/stdpadding"
            android:textIsSelectable="true"
            android:text="@string/missing_notification_permission"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            android:textAllCaps="false"
            android:background="@drawable/button_background"
            app:layout_constraintTop_toBottomOf="@+id/minimal_ui_title"


            tools:visibility="visible" />

    <TextView
            android:id="@+id/keychain_notification"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="@dimen/stdpadding"
            android:drawableStart="@drawable/key_chain_missing"
            android:drawablePadding="@dimen/stdpadding"
            android:text="@string/missing_keychain_access"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            android:textAllCaps="false"
            android:focusable="true"
            app:layout_constraintTop_toBottomOf="@+id/notification_permission"
            android:background="@drawable/button_background"
            tools:visibility="visible" />

    <CheckBox
            android:id="@+id/vpntoggle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:button="@drawable/vpn_status_indicator"
            android:scaleX="3"
            android:scaleY="3"
            android:textSize="12sp"
            app:layout_constraintBottom_toTopOf="@+id/vpnstatus"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/keychain_notification"
            android:backgroundTintMode="screen"
            android:backgroundTint="@color/button"
            app:switchMinWidth="80dp" />


    <TextView
            android:id="@+id/vpnstatus"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="25sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/vpntoggle"
            tools:text="VPN connection status text" />



</androidx.constraintlayout.widget.ConstraintLayout>