mirror of https://github.com/M66B/FairEmail.git
234 lines
10 KiB
XML
234 lines
10 KiB
XML
<?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"
|
|
android:layout_margin="6dp"
|
|
android:orientation="vertical"
|
|
tools:context=".ActivityView">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- account -->
|
|
|
|
<ImageButton
|
|
android:id="@+id/ibHelp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/baseline_help_24"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<Button
|
|
android:id="@+id/btnAccount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/title_setup_account"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvAccount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_setup_account_remark"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btnAccount" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvAccountDone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableStart="@drawable/baseline_check_24"
|
|
android:text="@string/title_setup_done"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvAccount" />
|
|
|
|
<View
|
|
android:id="@+id/vSeparatorAccount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="9dp"
|
|
android:background="?attr/colorSeparator"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvAccountDone" />
|
|
|
|
<!-- identity -->
|
|
|
|
<Button
|
|
android:id="@+id/btnIdentity"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="9dp"
|
|
android:text="@string/title_setup_identity"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/vSeparatorAccount" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvIdentity"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_setup_identity_remark"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btnIdentity" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvIdentityDone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableStart="@drawable/baseline_check_24"
|
|
android:text="@string/title_setup_done"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvIdentity" />
|
|
|
|
<View
|
|
android:id="@+id/vSeparatorIdentity"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="9dp"
|
|
android:background="?attr/colorSeparator"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvIdentityDone" />
|
|
|
|
<!-- permissions -->
|
|
|
|
<Button
|
|
android:id="@+id/btnPermissions"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="9dp"
|
|
android:text="@string/title_setup_permissions"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/vSeparatorIdentity" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvPermissions"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_setup_permissions_remark"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btnPermissions" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvPermissionsDone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableStart="@drawable/baseline_check_24"
|
|
android:text="@string/title_setup_done"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvPermissions" />
|
|
|
|
<View
|
|
android:id="@+id/vSeparatorPermissions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="9dp"
|
|
android:background="?attr/colorSeparator"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvPermissionsDone" />
|
|
|
|
<!-- doze -->
|
|
|
|
<Button
|
|
android:id="@+id/btnDoze"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="9dp"
|
|
android:text="@string/title_setup_doze"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/vSeparatorPermissions" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvDoze"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_setup_doze_remark"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btnDoze" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvDozeDone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableStart="@drawable/baseline_check_24"
|
|
android:text="@string/title_setup_done"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvDoze" />
|
|
|
|
<View
|
|
android:id="@+id/vSeparatorDoze"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="9dp"
|
|
android:background="?attr/colorSeparator"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvDozeDone" />
|
|
|
|
<!-- data saver -->
|
|
|
|
<Button
|
|
android:id="@+id/btnData"
|
|
style="?android:attr/buttonStyleSmall"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="9dp"
|
|
android:minHeight="0dp"
|
|
android:minWidth="0dp"
|
|
android:text="@string/title_setup_data"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/vSeparatorDoze" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/tbDarkTheme"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="18dp"
|
|
android:textOff="@string/title_setup_dark_theme"
|
|
android:textOn="@string/title_setup_light_theme"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/btnData" />
|
|
|
|
<Button
|
|
android:id="@+id/btnOptions"
|
|
style="?android:attr/buttonStyleSmall"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="18dp"
|
|
android:minHeight="0dp"
|
|
android:minWidth="0dp"
|
|
android:text="@string/title_advanced"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tbDarkTheme" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</ScrollView> |