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

371 lines
17 KiB
XML
Raw Normal View History

2018-08-02 13:33:06 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-08-08 06:55:47 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-02 13:33:06 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-04-22 18:29:46 +00:00
xmlns:tools="http://schemas.android.com/tools"
2018-08-02 13:33:06 +00:00
android:layout_width="match_parent"
2019-04-22 18:29:46 +00:00
android:layout_height="match_parent"
tools:context=".ActivityCompose">
2018-08-02 13:33:06 +00:00
2019-01-14 11:24:49 +00:00
<ScrollView
2018-08-02 13:33:06 +00:00
android:layout_width="match_parent"
android:layout_height="0dp"
2018-11-06 14:13:23 +00:00
app:layout_constraintBottom_toTopOf="@+id/edit_bar"
2018-08-02 13:33:06 +00:00
app:layout_constraintStart_toStartOf="parent"
2018-10-17 12:07:40 +00:00
app:layout_constraintTop_toTopOf="parent">
2018-08-02 13:33:06 +00:00
2019-04-18 12:34:09 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-08-02 13:33:06 +00:00
android:layout_width="match_parent"
2018-10-17 12:07:40 +00:00
android:layout_height="wrap_content">
2018-11-11 13:31:43 +00:00
<Spinner
android:id="@+id/spIdentity"
android:layout_width="0dp"
android:layout_height="wrap_content"
2019-04-17 16:32:02 +00:00
android:layout_marginStart="6dp"
2018-11-11 13:31:43 +00:00
android:layout_marginTop="6dp"
2019-01-02 18:01:09 +00:00
app:layout_constraintEnd_toEndOf="parent"
2018-11-11 13:31:43 +00:00
app:layout_constraintStart_toStartOf="parent"
2018-12-27 10:17:24 +00:00
app:layout_constraintTop_toTopOf="parent" />
2018-11-11 13:31:43 +00:00
2018-11-09 07:22:44 +00:00
<EditText
android:id="@+id/etExtra"
android:layout_width="0dp"
android:layout_height="wrap_content"
2019-02-13 08:08:40 +00:00
android:layout_marginStart="6dp"
2019-04-18 12:34:09 +00:00
android:hint="user"
2018-12-31 07:42:53 +00:00
android:inputType="text"
2018-11-09 07:22:44 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2019-02-13 08:08:40 +00:00
app:layout_constraintEnd_toStartOf="@+id/tvDomain"
app:layout_constraintStart_toStartOf="parent"
2018-11-11 13:31:43 +00:00
app:layout_constraintTop_toBottomOf="@id/spIdentity" />
2018-11-09 07:22:44 +00:00
<TextView
2019-02-13 08:08:40 +00:00
android:id="@+id/tvDomain"
2018-11-09 07:22:44 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:text="\@example.com"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintBottom_toBottomOf="@+id/etExtra"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/etExtra"
app:layout_constraintTop_toTopOf="@+id/etExtra" />
2018-10-17 12:07:40 +00:00
<MultiAutoCompleteTextView
android:id="@+id/etTo"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:hint="@string/title_to"
2019-03-03 11:16:00 +00:00
android:imeOptions="actionNext"
android:inputType="textEmailAddress"
2018-10-17 12:07:40 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintEnd_toStartOf="@+id/ivToAdd"
app:layout_constraintStart_toStartOf="parent"
2018-11-09 07:22:44 +00:00
app:layout_constraintTop_toBottomOf="@id/etExtra" />
2018-10-17 12:07:40 +00:00
<ImageView
android:id="@+id/ivToAdd"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_pick"
2018-10-17 12:07:40 +00:00
android:src="@drawable/baseline_person_24"
app:layout_constraintBottom_toBottomOf="@id/etTo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/etTo"
app:layout_constraintTop_toTopOf="@+id/etTo" />
<MultiAutoCompleteTextView
android:id="@+id/etCc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:hint="@string/title_cc"
2019-03-03 11:16:00 +00:00
android:imeOptions="actionNext"
android:inputType="textEmailAddress"
2018-10-17 12:07:40 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintEnd_toStartOf="@+id/ivCcAdd"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/etTo" />
<ImageView
android:id="@+id/ivCcAdd"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_pick"
2018-10-17 12:07:40 +00:00
android:src="@drawable/baseline_person_24"
app:layout_constraintBottom_toBottomOf="@id/etCc"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/etCc"
app:layout_constraintTop_toTopOf="@+id/etCc" />
<MultiAutoCompleteTextView
android:id="@+id/etBcc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:hint="@string/title_bcc"
2019-03-03 11:16:00 +00:00
android:imeOptions="actionNext"
android:inputType="textEmailAddress"
2018-10-17 12:07:40 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintEnd_toStartOf="@+id/ivBccAdd"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/etCc" />
<ImageView
android:id="@+id/ivBccAdd"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_pick"
2018-10-17 12:07:40 +00:00
android:src="@drawable/baseline_person_24"
app:layout_constraintBottom_toBottomOf="@id/etBcc"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/etBcc"
app:layout_constraintTop_toTopOf="@+id/etBcc" />
<EditText
android:id="@+id/etSubject"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:hint="@string/title_subject"
2019-03-03 11:16:00 +00:00
android:imeOptions="actionNext"
android:inputType="textEmailSubject|textCapSentences"
2018-10-17 12:07:40 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/etBcc" />
<View
android:id="@+id/vSeparatorAttachments"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="3dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etSubject" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvAttachment"
android:layout_width="0dp"
2019-01-13 09:18:53 +00:00
android:layout_height="wrap_content"
2018-10-17 12:07:40 +00:00
android:layout_marginStart="6dp"
android:layout_marginTop="3dp"
android:layout_marginEnd="6dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments" />
<TextView
android:id="@+id/tvNoInternetAttachments"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_no_internet"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="@id/rvAttachment"
app:layout_constraintStart_toStartOf="@id/rvAttachment"
app:layout_constraintTop_toBottomOf="@id/rvAttachment" />
2018-10-17 12:07:40 +00:00
<View
android:id="@+id/vSeparator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="6dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvNoInternetAttachments" />
2018-10-17 12:07:40 +00:00
2019-03-05 08:05:46 +00:00
<eu.faircode.email.EditTextCompose
2018-10-17 12:07:40 +00:00
android:id="@+id/etBody"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
2019-01-13 08:00:42 +00:00
android:layout_marginTop="6dp"
2018-10-17 12:07:40 +00:00
android:layout_marginEnd="6dp"
android:background="@null"
android:fontFamily="monospace"
android:gravity="top"
android:hint="@string/title_body_hint"
android:inputType="textCapSentences|textMultiLine"
2019-01-09 08:42:32 +00:00
android:minHeight="120dp"
2018-10-17 12:07:40 +00:00
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparator" />
<TextView
android:id="@+id/tvNoInternet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_no_internet"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintBottom_toBottomOf="@id/etBody"
app:layout_constraintEnd_toEndOf="@id/etBody"
app:layout_constraintStart_toStartOf="@id/etBody"
app:layout_constraintTop_toTopOf="@id/etBody" />
<View
2019-01-13 08:00:42 +00:00
android:id="@+id/vSeparatorBody"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="6dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/etBody" />
<TextView
android:id="@+id/tvSignature"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
2019-01-13 08:00:42 +00:00
android:layout_marginTop="6dp"
android:layout_marginEnd="6dp"
android:fontFamily="monospace"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
2019-01-27 11:17:28 +00:00
android:textStyle="italic"
app:layout_constraintStart_toStartOf="parent"
2019-01-13 08:00:42 +00:00
app:layout_constraintTop_toBottomOf="@id/vSeparatorBody" />
<View
2019-01-13 08:00:42 +00:00
android:id="@+id/vSeparatorSignature"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="6dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvSignature" />
2019-04-19 17:25:09 +00:00
<TextView
android:id="@+id/tvReferenceHint"
2019-04-21 05:23:37 +00:00
android:layout_width="0dp"
2019-04-19 17:25:09 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginTop="6dp"
android:layout_marginEnd="6dp"
android:text="@string/title_no_format"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
2019-04-21 05:23:37 +00:00
app:layout_constraintEnd_toStartOf="@+id/ibReferenceEdit"
2019-04-19 17:25:09 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparatorSignature" />
<TextView
android:id="@+id/tvReference"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
2019-01-13 08:00:42 +00:00
android:layout_marginTop="6dp"
android:layout_marginEnd="6dp"
android:fontFamily="monospace"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
2018-12-01 13:35:09 +00:00
android:textIsSelectable="true"
app:layout_constraintStart_toStartOf="parent"
2019-04-19 17:25:09 +00:00
app:layout_constraintTop_toBottomOf="@id/tvReferenceHint" />
<ImageButton
2019-01-29 14:09:38 +00:00
android:id="@+id/ibReferenceEdit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="6dp"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_edit"
2019-01-29 14:09:38 +00:00
android:src="@drawable/baseline_edit_24"
app:layout_constraintEnd_toStartOf="@+id/ibReferenceImages"
2019-04-19 17:25:09 +00:00
app:layout_constraintTop_toTopOf="@id/tvReferenceHint" />
2019-01-29 14:09:38 +00:00
<ImageButton
android:id="@+id/ibReferenceImages"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="6dp"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_show_images"
android:src="@drawable/baseline_image_24"
app:layout_constraintEnd_toEndOf="parent"
2019-04-19 17:25:09 +00:00
app:layout_constraintTop_toTopOf="@id/tvReferenceHint" />
2018-10-17 12:07:40 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/grpHeader"
android:layout_width="0dp"
android:layout_height="0dp"
2019-04-18 08:09:59 +00:00
app:constraint_referenced_ids="spIdentity,etTo,ivToAdd,etSubject,vSeparator" />
2018-10-17 12:07:40 +00:00
2018-11-09 07:22:44 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/grpExtra"
android:layout_width="0dp"
android:layout_height="0dp"
2019-02-13 19:24:13 +00:00
app:constraint_referenced_ids="etExtra,tvDomain" />
2018-11-09 07:22:44 +00:00
2018-10-17 12:07:40 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/grpAddresses"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="etCc,ivCcAdd,etBcc,ivBccAdd" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpAttachments"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="vSeparatorAttachments,rvAttachment" />
2019-01-13 12:13:32 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/grpBody"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="vSeparatorBody,etBody" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpSignature"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="vSeparatorSignature,tvSignature" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpReference"
android:layout_width="0dp"
android:layout_height="0dp"
2019-04-19 17:25:09 +00:00
app:constraint_referenced_ids="tvReferenceHint,tvReference" />
2018-10-17 12:07:40 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2018-08-02 13:33:06 +00:00
</ScrollView>
2018-11-06 13:48:52 +00:00
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/edit_bar"
android:layout_width="match_parent"
2018-11-06 13:59:17 +00:00
android:layout_height="36dp"
2018-11-06 13:48:52 +00:00
android:background="?attr/colorSeparator"
2019-01-10 10:04:44 +00:00
app:itemIconTint="@color/bottomnav_foreground"
app:itemTextColor="@color/bottomnav_foreground"
2018-11-06 13:48:52 +00:00
app:labelVisibilityMode="unlabeled"
app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/action_edit" />
2018-08-08 06:55:47 +00:00
<com.google.android.material.bottomnavigation.BottomNavigationView
2018-08-02 13:33:06 +00:00
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-11-18 16:52:58 +00:00
android:background="?android:attr/colorPrimary"
2019-01-10 10:04:44 +00:00
app:itemIconTint="@color/bottomnav_foreground"
app:itemTextColor="@color/bottomnav_foreground"
2018-08-13 13:53:46 +00:00
app:labelVisibilityMode="labeled"
2018-08-02 13:33:06 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/action_compose" />
2018-12-27 12:31:02 +00:00
<eu.faircode.email.ContentLoadingProgressBar
2018-08-02 13:33:06 +00:00
android:id="@+id/pbWait"
style="@style/Base.Widget.AppCompat.ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
2018-08-04 17:42:41 +00:00
app:layout_constraintBottom_toBottomOf="parent"
2018-08-02 13:33:06 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2018-08-04 17:42:41 +00:00
app:layout_constraintTop_toTopOf="parent" />
2018-08-08 06:55:47 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>