2018-08-02 13:33:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/spFrom"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<ImageView
|
2018-08-03 07:39:43 +00:00
|
|
|
android:id="@+id/ivIdentityAdd"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2018-08-03 07:39:43 +00:00
|
|
|
android:layout_marginEnd="6dp"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:src="@drawable/baseline_person_add_24"
|
2018-08-03 07:39:43 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/spFrom"
|
2018-08-02 13:33:06 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/spFrom"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/spFrom" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etTo"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:hint="@string/title_to"
|
|
|
|
android:inputType="textEmailAddress"
|
2018-08-04 10:19:51 +00:00
|
|
|
android:singleLine="true"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
2018-08-03 07:39:43 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ivToAdd"
|
2018-08-02 13:33:06 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/spFrom" />
|
|
|
|
|
|
|
|
<ImageView
|
2018-08-03 07:39:43 +00:00
|
|
|
android:id="@+id/ivToAdd"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:src="@drawable/baseline_person_24"
|
2018-08-03 07:39:43 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/etTo"
|
2018-08-02 13:33:06 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/etTo"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/etTo" />
|
|
|
|
|
2018-08-03 07:39:43 +00:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etCc"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:hint="@string/title_cc"
|
|
|
|
android:inputType="textEmailAddress"
|
2018-08-04 10:19:51 +00:00
|
|
|
android:singleLine="true"
|
2018-08-03 07:39:43 +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_marginEnd="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etBcc"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:hint="@string/title_bcc"
|
|
|
|
android:inputType="textEmailAddress"
|
2018-08-04 10:19:51 +00:00
|
|
|
android:singleLine="true"
|
2018-08-03 07:39:43 +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_marginEnd="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
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" />
|
|
|
|
|
2018-08-02 13:33:06 +00:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/etSubject"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:hint="@string/title_subject"
|
|
|
|
android:inputType="textEmailSubject"
|
2018-08-04 10:19:51 +00:00
|
|
|
android:singleLine="true"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-08-03 07:39:43 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/etBcc" />
|
2018-08-02 13:33:06 +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/etSubject" />
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/scroll"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2018-08-02 17:39:04 +00:00
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
2018-08-02 13:33:06 +00:00
|
|
|
android:fillViewport="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/vSeparator">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/etBody"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:gravity="top"
|
|
|
|
android:hint="@string/title_body_hint"
|
|
|
|
android:inputType="textMultiLine"
|
2018-08-02 17:39:04 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
2018-08-02 13:33:06 +00:00
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<android.support.design.widget.BottomNavigationView
|
|
|
|
android:id="@+id/bottom_navigation"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/colorPrimary"
|
|
|
|
app:itemIconTint="@color/colorActionForeground"
|
|
|
|
app:itemTextColor="@color/colorActionForeground"
|
|
|
|
app:labelVisibilityMode="unlabeled"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:menu="@menu/action_compose" />
|
|
|
|
|
|
|
|
<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_toTopOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="parent" />
|
|
|
|
|
2018-08-03 07:39:43 +00:00
|
|
|
<android.support.constraint.Group
|
|
|
|
android:id="@+id/grpCc"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:constraint_referenced_ids="etCc,ivCcAdd,etBcc,ivBccAdd" />
|
|
|
|
|
2018-08-02 13:33:06 +00:00
|
|
|
<android.support.constraint.Group
|
|
|
|
android:id="@+id/grpReady"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2018-08-03 07:39:43 +00:00
|
|
|
app:constraint_referenced_ids="spFrom,ivIdentityAdd,etTo,etSubject,vSeparator,scroll,bottom_navigation" />
|
2018-08-02 13:33:06 +00:00
|
|
|
</android.support.constraint.ConstraintLayout>
|