diff options
| author | Arne Schwabe <arne@rfc2549.org> | 2025-11-18 12:08:43 +0100 |
|---|---|---|
| committer | Arne Schwabe <arne@rfc2549.org> | 2025-11-18 12:18:43 +0100 |
| commit | d34dd25f596d3eaa61df338ba62c19269ccf63ab (patch) | |
| tree | 279b913491a9f59c5381fd0a5608b2f0dd35b7f6 /main/src/ui/res/layout | |
| parent | 2c69da35a271ee4327ab51ec9cf7a1a5b93506bf (diff) | |
Improve minimal UI, add reconnect and encryption to app restrictions
Diffstat (limited to 'main/src/ui/res/layout')
| -rw-r--r-- | main/src/ui/res/layout/minimalui.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/main/src/ui/res/layout/minimalui.xml b/main/src/ui/res/layout/minimalui.xml new file mode 100644 index 00000000..3ff7da2b --- /dev/null +++ b/main/src/ui/res/layout/minimalui.xml @@ -0,0 +1,56 @@ +<?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/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:text="@string/missing_notification_permission" + android:visibility="gone" + app:layout_constraintEnd_toEndOf="parent" + + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + 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:text="" + android:textSize="45sp" + 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/notification_permission" + 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>
\ No newline at end of file |
