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_name"
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<!-- email -->
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvEmail"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/title_email"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/etName" />
|
|
|
|
|
|
|
|
<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" />
|
|
|
|
|
2018-08-02 22:26:56 +00:00
|
|
|
<!-- 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_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-08 10:22:12 +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/etReplyTo" />
|
|
|
|
|
|
|
|
<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" />
|
|
|
|
|
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-08-08 10:22:12 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/spAccount" />
|
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" />
|
|
|
|
|
|
|
|
<!-- 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/tvSmtp" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etHost"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="smtp.domain.tld"
|
|
|
|
android:inputType="text"
|
|
|
|
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
|
2018-08-03 10:56:11 +00:00
|
|
|
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"
|
2018-08-03 10:56:11 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvPassword"
|
|
|
|
app:passwordToggleEnabled="true">
|
|
|
|
|
2018-08-08 06:55:47 +00:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2018-08-03 10:56:11 +00:00
|
|
|
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-08-03 10:56:11 +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
|
|
|
|
|
|
|
<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-06 10:02:47 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/cbPrimary" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/pbCheck"
|
|
|
|
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"
|
|
|
|
android:src="@drawable/baseline_delete_24"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/btnSave"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
2018-08-08 06:55:47 +00:00
|
|
|
<androidx.constraintlayout.widget.Group
|
2018-08-02 13:33:06 +00:00
|
|
|
android:id="@+id/grpReady"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2018-08-06 10:27:21 +00:00
|
|
|
app:constraint_referenced_ids="etName,etEmail,spProvider,etHost,cbStartTls,etPort,etUser,tilPassword,cbPrimary,cbSynchronize,btnSave" />
|
2018-08-08 06:55:47 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-08-02 13:33:06 +00:00
|
|
|
</ScrollView>
|