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"
|
2018-10-17 12:15:25 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:padding="12dp">
|
|
|
|
|
2018-08-03 16:22:21 +00:00
|
|
|
<!-- provider -->
|
2018-08-02 13:33:06 +00:00
|
|
|
|
|
|
|
<TextView
|
2018-08-03 16:22:21 +00:00
|
|
|
android:id="@+id/tvProvider"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-03 16:22:21 +00:00
|
|
|
android:text="@string/title_provider"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2018-08-03 16:22:21 +00:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spProvider"
|
|
|
|
android:layout_width="wrap_content"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-08-03 16:22:21 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvProvider" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2018-09-18 14:22:10 +00:00
|
|
|
<!-- auto config -->
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvDomain"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/title_domain"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/spProvider" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etDomain"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="domain.tld"
|
2018-09-20 14:16:09 +00:00
|
|
|
android:inputType="textUri"
|
2018-09-18 14:22:10 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvDomain" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnAutoConfig"
|
|
|
|
style="@style/buttonStyleSmall"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:minWidth="0dp"
|
2018-10-23 07:52:20 +00:00
|
|
|
android:minHeight="0dp"
|
2018-09-18 14:22:10 +00:00
|
|
|
android:text="@string/title_autoconfig"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/etDomain" />
|
|
|
|
|
2018-08-02 13:33:06 +00:00
|
|
|
<!-- IMAP -->
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvImap"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/title_imap"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-09-18 14:22:10 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/btnAutoConfig" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2018-09-06 12:02:20 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvPop"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_pop"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textStyle="italic"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvImap" />
|
|
|
|
|
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"
|
2018-12-11 18:05:37 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvPop" />
|
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="imap.domain.tld"
|
2018-09-20 14:16:09 +00:00
|
|
|
android:inputType="textUri"
|
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" />
|
|
|
|
|
2018-10-23 07:52:20 +00:00
|
|
|
<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" />
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbInsecure"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/title_allow_insecure"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/cbStartTls" />
|
|
|
|
|
2018-08-02 13:33:06 +00:00
|
|
|
<!-- 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"
|
2018-10-23 07:52:20 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/cbInsecure" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etPort"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="993"
|
|
|
|
android:inputType="number"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvPort" />
|
|
|
|
|
2018-08-27 14:31:45 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnAuthorize"
|
2018-09-18 14:22:10 +00:00
|
|
|
style="@style/buttonStyleSmall"
|
2018-08-27 14:31:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
2018-09-18 14:22:10 +00:00
|
|
|
android:minWidth="0dp"
|
2018-10-23 07:52:20 +00:00
|
|
|
android:minHeight="0dp"
|
2018-08-27 14:31:45 +00:00
|
|
|
android:text="@string/title_authorize"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/etPort" />
|
|
|
|
|
2018-08-23 09:48:27 +00:00
|
|
|
<!-- user -->
|
2018-08-02 13:33:06 +00:00
|
|
|
|
|
|
|
<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"
|
2018-08-27 14:31:45 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/btnAuthorize" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etUser"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-11-03 18:55:02 +00:00
|
|
|
android:autofillHints="username"
|
2018-08-02 13:33:06 +00:00
|
|
|
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"
|
2018-11-03 18:55:02 +00:00
|
|
|
android:autofillHints="password"
|
2018-08-02 13:33:06 +00:00
|
|
|
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"
|
2018-11-03 18:55:02 +00:00
|
|
|
android:autofillHints="password"
|
2018-08-03 10:56:11 +00:00
|
|
|
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
|
|
|
|
2018-09-05 18:37:20 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnAdvanced"
|
|
|
|
style="@style/buttonStyleSmall"
|
2018-08-24 16:41:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
2018-09-05 18:37:20 +00:00
|
|
|
android:minWidth="0dp"
|
2018-10-23 07:52:20 +00:00
|
|
|
android:minHeight="0dp"
|
2018-09-05 18:37:20 +00:00
|
|
|
android:text="@string/title_setup_advanced"
|
2018-08-24 16:41:22 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tilPassword" />
|
|
|
|
|
2018-09-05 20:04:23 +00:00
|
|
|
<!-- name -->
|
|
|
|
|
2018-08-24 16:41:22 +00:00
|
|
|
<TextView
|
2018-09-05 18:37:20 +00:00
|
|
|
android:id="@+id/tvName"
|
2018-08-24 16:41:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
2018-09-05 18:37:20 +00:00
|
|
|
android:text="@string/title_account_name"
|
2018-08-24 16:41:22 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-09-05 18:37:20 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/btnAdvanced" />
|
|
|
|
|
2018-12-11 10:36:33 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvNameRemark"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:text="@string/title_account_name_hint"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textStyle="italic"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvName" />
|
|
|
|
|
2018-09-05 18:37:20 +00:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etName"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="text"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-12-11 10:36:33 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvNameRemark" />
|
2018-08-24 16:41:22 +00:00
|
|
|
|
2018-09-21 05:36:01 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btnColor"
|
|
|
|
style="@style/buttonStyleSmall"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:minWidth="0dp"
|
2018-10-23 07:52:20 +00:00
|
|
|
android:minHeight="0dp"
|
2018-09-21 05:36:01 +00:00
|
|
|
android:text="@string/title_account_color"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/etName" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/vwColor"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:background="@color/colorAccent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/btnColor"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/btnColor"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/btnColor" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ibColorDefault"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:src="@drawable/baseline_delete_24"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/btnColor"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/vwColor"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/etName" />
|
|
|
|
|
2018-11-24 08:26:34 +00:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/cbNotify"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/title_account_notify"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/btnColor" />
|
|
|
|
|
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_account"
|
2018-08-02 13:33:06 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-11-24 08:26:34 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/cbNotify" />
|
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_account"
|
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-09-21 17:19:02 +00:00
|
|
|
|
2018-10-01 09:14:21 +00:00
|
|
|
<!-- keep alive -->
|
2018-09-21 17:19:02 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvInterval"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
2018-10-01 09:14:21 +00:00
|
|
|
android:text="@string/title_keep_alive_interval"
|
2018-09-21 17:19:02 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/cbPrimary" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etInterval"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-10-23 08:07:31 +00:00
|
|
|
android:hint="19"
|
2018-09-21 17:19:02 +00:00
|
|
|
android:inputType="number"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvInterval" />
|
|
|
|
|
2018-08-10 09:45:36 +00:00
|
|
|
<!-- check -->
|
|
|
|
|
2018-08-02 13:33:06 +00:00
|
|
|
<Button
|
2018-08-10 09:45:36 +00:00
|
|
|
android:id="@+id/btnCheck"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
2018-08-10 09:45:36 +00:00
|
|
|
android:text="@string/title_check"
|
2018-08-02 13:33:06 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-09-21 17:19:02 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/etInterval" />
|
2018-08-02 13:33:06 +00:00
|
|
|
|
2018-11-05 09:03:02 +00:00
|
|
|
<ProgressBar
|
2018-08-02 13:33:06 +00:00
|
|
|
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-10 09:45:36 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/btnCheck"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/btnCheck"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/btnCheck" />
|
|
|
|
|
2018-09-22 10:29:35 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvIdle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/title_no_idle"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/btnCheck" />
|
|
|
|
|
2018-08-10 09:45:36 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvDrafts"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_folder_drafts"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/spDrafts"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/spDrafts" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvSent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_folder_sent"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/spSent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/spSent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvAll"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_folder_all"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/spAll"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/spAll" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvTrash"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_folder_trash"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/spTrash"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/spTrash" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvJunk"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_folder_junk"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/spJunk"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/spJunk" />
|
|
|
|
|
2018-11-16 08:22:26 +00:00
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/barrier_folders"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
app:barrierDirection="end"
|
|
|
|
app:constraint_referenced_ids="tvDrafts,tvSent,tvAll,tvTrash,tvJunk" />
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spDrafts"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/barrier_folders"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvIdle" />
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spSent"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/barrier_folders"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/spDrafts" />
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spAll"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/barrier_folders"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/spSent" />
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spTrash"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/barrier_folders"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/spAll" />
|
|
|
|
|
2018-08-10 09:45:36 +00:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spJunk"
|
2018-08-10 13:32:07 +00:00
|
|
|
android:layout_width="0dp"
|
2018-08-10 09:45:36 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-11-16 08:22:26 +00:00
|
|
|
android:layout_marginStart="6dp"
|
2018-08-13 05:15:56 +00:00
|
|
|
android:layout_marginTop="12dp"
|
2018-08-10 13:32:07 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2018-11-16 08:22:26 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/barrier_folders"
|
2018-08-10 09:45:36 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/spTrash" />
|
|
|
|
|
2018-11-16 08:22:26 +00:00
|
|
|
|
2018-08-10 09:45:36 +00:00
|
|
|
<!-- save -->
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btnSave"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/title_save"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/spJunk" />
|
|
|
|
|
2018-11-05 09:03:02 +00:00
|
|
|
<ProgressBar
|
2018-08-10 09:45:36 +00:00
|
|
|
android:id="@+id/pbSave"
|
|
|
|
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-11-05 09:03:02 +00:00
|
|
|
<ProgressBar
|
2018-08-10 11:05:38 +00:00
|
|
|
android:id="@+id/pbWait"
|
|
|
|
style="@style/Base.Widget.AppCompat.ProgressBar"
|
2018-08-07 19:35:21 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-10 11:05:38 +00:00
|
|
|
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-10 09:45:36 +00:00
|
|
|
|
2018-09-01 06:01:02 +00:00
|
|
|
<androidx.constraintlayout.widget.Group
|
2018-09-05 18:37:20 +00:00
|
|
|
android:id="@+id/grpServer"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2018-12-11 18:05:37 +00:00
|
|
|
app:constraint_referenced_ids="tvDomain,etDomain,btnAutoConfig,tvImap,tvPop,tvHost,etHost,tvPort,etPort" />
|
2018-09-05 18:37:20 +00:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/grpAuthorize"
|
2018-09-01 06:01:02 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2018-09-05 18:37:20 +00:00
|
|
|
app:constraint_referenced_ids="tvUser,etUser,tvPassword,tilPassword" />
|
2018-09-01 06:01:02 +00:00
|
|
|
|
2018-08-24 16:41:22 +00:00
|
|
|
<androidx.constraintlayout.widget.Group
|
2018-09-05 18:37:20 +00:00
|
|
|
android:id="@+id/grpAdvanced"
|
2018-08-24 16:41:22 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2018-12-11 10:36:33 +00:00
|
|
|
app:constraint_referenced_ids="tvName,tvNameRemark,etName,btnColor,vwColor,ibColorDefault,cbNotify,cbSynchronize,cbPrimary,tvInterval,etInterval" />
|
2018-08-24 16:41:22 +00:00
|
|
|
|
2018-08-10 09:45:36 +00:00
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/grpFolders"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:constraint_referenced_ids="tvDrafts,spDrafts,tvSent,spSent,tvAll,spAll,tvTrash,spTrash,tvJunk,spJunk" />
|
2018-08-08 06:55:47 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-08-02 13:33:06 +00:00
|
|
|
</ScrollView>
|