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

327 lines
14 KiB
XML
Raw Normal View History

2018-08-02 13:33:06 +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"
android:orientation="vertical"
tools:context=".ActivityView">
2018-08-08 06:55:47 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-08-02 13:33:06 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="12dp">
<!-- name -->
<TextView
android:id="@+id/tvName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_identity_name"
2018-08-02 13:33:06 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/etName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textCapSentences"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvName" />
2018-09-05 20:04:23 +00:00
<!--- linked account -->
<TextView
android:id="@+id/tvAccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_account_linked"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etName" />
<Spinner
android:id="@+id/spAccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAccount" />
<Button
android:id="@+id/btnAdvanced"
style="@style/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:minHeight="0dp"
android:minWidth="0dp"
android:text="@string/title_setup_advanced"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/spAccount" />
2018-08-02 13:33:06 +00:00
<!-- email -->
<TextView
android:id="@+id/tvEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_identity_email"
2018-08-02 13:33:06 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
2018-09-05 20:04:23 +00:00
app:layout_constraintTop_toBottomOf="@id/btnAdvanced" />
2018-08-02 13:33:06 +00:00
<EditText
android:id="@+id/etEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvEmail" />
<!-- reply to -->
<TextView
android:id="@+id/tvReplyTo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_identity_reply_to"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etEmail" />
<EditText
android:id="@+id/etReplyTo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/title_optional"
android:inputType="textEmailAddress"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvReplyTo" />
2018-08-02 13:33:06 +00:00
<!--- provider -->
<TextView
android:id="@+id/tvProvider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_provider"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
2018-09-05 20:04:23 +00:00
app:layout_constraintTop_toBottomOf="@id/etReplyTo" />
2018-08-02 13:33:06 +00:00
<Spinner
android:id="@+id/spProvider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvProvider" />
<!-- SMTP -->
<TextView
android:id="@+id/tvSmtp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_smtp"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/spProvider" />
<TextView
android:id="@+id/tvInsecure"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_insecure"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvSmtp" />
2018-08-02 13:33:06 +00:00
<!-- host -->
<TextView
android:id="@+id/tvHost"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_host"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvInsecure" />
2018-08-02 13:33:06 +00:00
<EditText
android:id="@+id/etHost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="smtp.domain.tld"
2018-08-27 05:10:59 +00:00
android:inputType="textNoSuggestions"
2018-08-02 13:33:06 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvHost" />
<!-- STARTTLS -->
<CheckBox
android:id="@+id/cbStartTls"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_starttls"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etHost" />
<!-- port -->
<TextView
android:id="@+id/tvPort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_port"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbStartTls" />
<EditText
android:id="@+id/etPort"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="465"
android:inputType="number"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvPort" />
<!-- password -->
<TextView
android:id="@+id/tvUser"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_user"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etPort" />
<EditText
android:id="@+id/etUser"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvUser" />
<!-- password -->
<TextView
android:id="@+id/tvPassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_password"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etUser" />
2018-08-08 06:55:47 +00:00
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tilPassword"
2018-08-02 13:33:06 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvPassword"
app:passwordToggleEnabled="true">
2018-08-08 06:55:47 +00:00
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword" />
2018-08-08 06:55:47 +00:00
</com.google.android.material.textfield.TextInputLayout>
2018-08-02 13:33:06 +00:00
<CheckBox
2018-08-06 10:02:47 +00:00
android:id="@+id/cbSynchronize"
2018-08-02 13:33:06 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2018-08-06 10:02:47 +00:00
android:text="@string/title_synchronize_identity"
2018-08-02 13:33:06 +00:00
app:layout_constraintStart_toStartOf="parent"
2018-09-05 20:04:23 +00:00
app:layout_constraintTop_toBottomOf="@id/tilPassword" />
2018-08-02 13:33:06 +00:00
<CheckBox
2018-08-06 10:02:47 +00:00
android:id="@+id/cbPrimary"
2018-08-02 13:33:06 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2018-08-06 10:02:47 +00:00
android:text="@string/title_primary_identity"
2018-08-02 13:33:06 +00:00
app:layout_constraintStart_toStartOf="parent"
2018-08-06 10:02:47 +00:00
app:layout_constraintTop_toBottomOf="@id/cbSynchronize" />
2018-08-02 13:33:06 +00:00
2018-08-25 14:24:26 +00:00
<CheckBox
android:id="@+id/cbStoreSent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_store_sent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbPrimary" />
2018-08-02 13:33:06 +00:00
<Button
2018-08-06 10:27:21 +00:00
android:id="@+id/btnSave"
2018-08-02 13:33:06 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2018-08-06 10:27:21 +00:00
android:text="@string/title_save"
2018-08-02 13:33:06 +00:00
app:layout_constraintStart_toStartOf="parent"
2018-08-25 14:24:26 +00:00
app:layout_constraintTop_toBottomOf="@id/cbStoreSent" />
2018-08-02 13:33:06 +00:00
<ProgressBar
android:id="@+id/pbSave"
2018-08-02 13:33:06 +00:00
style="@style/Base.Widget.AppCompat.ProgressBar"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="12dp"
android:indeterminate="true"
2018-08-06 10:27:21 +00:00
app:layout_constraintBottom_toBottomOf="@id/btnSave"
app:layout_constraintStart_toEndOf="@id/btnSave"
app:layout_constraintTop_toTopOf="@id/btnSave" />
2018-08-02 13:33:06 +00:00
2018-08-07 19:35:21 +00:00
<ImageButton
android:id="@+id/ibDelete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-08-14 07:56:17 +00:00
android:layout_marginTop="12dp"
2018-08-07 19:35:21 +00:00
android:src="@drawable/baseline_delete_24"
2018-08-14 07:56:17 +00:00
app:layout_constraintEnd_toEndOf="parent"
2018-08-25 14:24:26 +00:00
app:layout_constraintTop_toBottomOf="@id/cbStoreSent" />
2018-08-07 19:35:21 +00:00
<ProgressBar
android:id="@+id/pbWait"
style="@style/Base.Widget.AppCompat.ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2018-08-24 16:41:22 +00:00
<androidx.constraintlayout.widget.Group
2018-09-05 20:04:23 +00:00
android:id="@+id/grpAdvanced"
2018-08-24 16:41:22 +00:00
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvEmail,etEmail,tvReplyTo,etReplyTo,tvProvider,spProvider,tvSmtp,tvInsecure,tvHost,etHost,cbStartTls,tvPort,etPort,tvUser,etUser,tvPassword,tilPassword,cbSynchronize,cbPrimary,cbStoreSent" />
2018-08-08 06:55:47 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2018-08-02 13:33:06 +00:00
</ScrollView>