FairEmail/app/src/main/res/layout/fragment_options_privacy.xml

236 lines
11 KiB
XML
Raw Normal View History

2019-10-05 12:52:40 +00:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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"
2020-03-03 15:25:29 +00:00
android:paddingStart="6dp"
android:paddingTop="12dp"
android:paddingEnd="6dp"
android:paddingBottom="0dp"
2019-10-05 12:52:40 +00:00
android:scrollbarStyle="outsideOverlay"
2019-12-03 07:45:26 +00:00
tools:context="eu.faircode.email.ActivitySetup">
2019-10-05 12:52:40 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
2020-03-04 07:56:13 +00:00
android:layout_height="wrap_content"
android:paddingBottom="24dp">
2019-10-05 12:52:40 +00:00
2020-03-10 07:48:54 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvCaptionGeneral"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:gravity="center"
android:text="@string/title_advanced_caption_general"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swConfirmLinks"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_advanced_confirm_links"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-03-10 07:48:54 +00:00
app:layout_constraintTop_toBottomOf="@id/tvCaptionGeneral"
app:switchPadding="12dp" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvConfirmLinksHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_display_harmful_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swConfirmLinks" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swConfirmImages"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_advanced_confirm_images"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvConfirmLinksHint"
app:switchPadding="12dp" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvConfirmImagesHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_display_harmful_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swConfirmImages" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swConfirmHtml"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_advanced_confirm_html"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvConfirmImagesHint"
app:switchPadding="12dp" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvConfirmHtmlHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_display_harmful_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swConfirmHtml" />
2019-10-05 12:52:40 +00:00
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swDisableTracking"
android:layout_width="0dp"
android:layout_height="wrap_content"
2019-10-29 17:02:27 +00:00
android:layout_marginTop="12dp"
2019-10-05 12:52:40 +00:00
android:checked="true"
android:text="@string/title_advanced_tracking"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvConfirmHtmlHint"
2019-10-05 12:52:40 +00:00
app:switchPadding="12dp" />
2019-10-16 09:05:38 +00:00
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swDisplayHidden"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_advanced_display_hidden"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swDisableTracking"
app:switchPadding="12dp" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-10-16 09:05:38 +00:00
android:id="@+id/tvDisplayHiddenHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_display_hidden_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swDisplayHidden" />
2019-10-05 12:52:40 +00:00
<androidx.appcompat.widget.SwitchCompat
2019-11-15 13:27:28 +00:00
android:id="@+id/swSecure"
2019-10-05 12:52:40 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2019-11-15 13:27:28 +00:00
android:text="@string/title_advanced_secure"
2019-10-05 12:52:40 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvDisplayHiddenHint"
2019-10-05 12:52:40 +00:00
app:switchPadding="12dp" />
2019-10-05 14:09:52 +00:00
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-11-15 13:27:28 +00:00
android:id="@+id/tvSecureHint"
2019-10-05 14:09:52 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_english_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-11-15 13:27:28 +00:00
app:layout_constraintTop_toBottomOf="@id/swSecure" />
2019-10-20 08:22:21 +00:00
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvBiometrics"
2019-10-20 08:22:21 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginEnd="48dp"
android:text="@string/title_setup_biometrics"
2019-12-10 13:22:07 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
2019-10-20 08:22:21 +00:00
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-11-15 13:27:28 +00:00
app:layout_constraintTop_toBottomOf="@id/tvSecureHint" />
2019-10-20 08:22:21 +00:00
<Button
android:id="@+id/btnBiometrics"
style="?android:attr/buttonStyleSmall"
2019-10-20 08:22:21 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:minWidth="0dp"
android:minHeight="0dp"
android:text="@string/title_setup_biometrics_enable"
2019-10-20 08:22:21 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBiometrics" />
2019-10-20 10:17:04 +00:00
<Button
android:id="@+id/btnPin"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
2019-10-20 10:17:04 +00:00
android:minWidth="0dp"
android:minHeight="0dp"
android:text="@string/title_advanced_pin"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBiometrics" />
2019-10-20 17:12:39 +00:00
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
2019-10-20 17:12:39 +00:00
android:id="@+id/tvPinHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_display_pin_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnPin" />
2020-02-28 16:34:43 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvBiometricsTimeout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_biometrics_timeout"
2019-12-10 13:22:07 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvPinHint" />
<Spinner
android:id="@+id/spBiometricsTimeout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:entries="@array/biometricsTimeoutNames"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBiometricsTimeout" />
2019-10-05 12:52:40 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>