143 lines
5.5 KiB
XML
143 lines
5.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="24dp"
|
|
android:background="?android:attr/windowBackground">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/setup_title"
|
|
android:textSize="28sp"
|
|
android:textStyle="bold"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/setup_welcome_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:layout_marginBottom="32dp"/>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/switch_perm_notifications"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/setup_perm_notifications"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="16sp"
|
|
android:paddingVertical="12dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:theme="@style/PurpleSwitchTheme"/>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/switch_perm_termux"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/setup_perm_termux"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="16sp"
|
|
android:paddingVertical="12dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:theme="@style/PurpleSwitchTheme"/>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/switch_perm_vpn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/setup_perm_vpn"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="16sp"
|
|
android:paddingVertical="12dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:theme="@style/PurpleSwitchTheme"/>
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/switch_perm_battery"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/setup_perm_battery"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="16sp"
|
|
android:paddingVertical="12dp"
|
|
android:theme="@style/PurpleSwitchTheme"/>
|
|
|
|
<Button
|
|
android:id="@+id/btn_manage_all"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Manage All Permissions"
|
|
android:textAllCaps="false"
|
|
android:gravity="start|center_vertical"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="16sp"
|
|
android:paddingVertical="12dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:minHeight="0dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:layout_marginBottom="12dp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Termux custom permissions"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:layout_marginBottom="8dp"/>
|
|
|
|
<Button
|
|
android:id="@+id/btn_termux_overlay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Display over other apps"
|
|
android:textAllCaps="false"
|
|
style="?android:attr/borderlessButtonStyle"
|
|
android:gravity="start|center_vertical"
|
|
android:textColor="@color/lightGray66" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_manage_termux"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Manage Termux permissions"
|
|
android:textAllCaps="false"
|
|
style="?android:attr/borderlessButtonStyle"
|
|
android:gravity="start|center_vertical"
|
|
android:textColor="@color/lightGray66" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/btn_setup_continue"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:text="@string/setup_continue"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:textColor="#FFFFFF"
|
|
android:background="@drawable/rounded_button"
|
|
android:backgroundTint="@color/btn_success"
|
|
android:textAllCaps="false"
|
|
android:enabled="false" />
|
|
</LinearLayout>
|