mirror of https://github.com/M66B/FairEmail.git
parent
9d56de35ef
commit
91084fbb31
@ -0,0 +1,331 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:id="@+id/clItem"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/activatableItemBackground"
|
||||||
|
android:descendantFocusability="beforeDescendants"
|
||||||
|
android:focusable="true"
|
||||||
|
android:focusableInTouchMode="true">
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/vwColor"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:background="@color/colorAccent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingTop"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="12dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivExpander"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical|center_horizontal"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||||
|
android:contentDescription="@string/title_legend_expander"
|
||||||
|
android:src="@drawable/expander"
|
||||||
|
android:visibility="visible"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/vwColor"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingStart"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/ivExpander"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivAvatar"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_avatar"
|
||||||
|
android:src="@drawable/baseline_person_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFrom"
|
||||||
|
app:layout_constraintDimensionRatio="1:1"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/paddingStart"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvFrom"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:minHeight="24dp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="From"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/tvSize"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAvatar"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvSize"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="123 KB"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
android:textColor="?attr/colorUnread"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFrom"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/tvTime"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvTime"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="Time"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFrom"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/ivFlagged"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivType"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_folder_type"
|
||||||
|
android:src="@drawable/baseline_edit_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvSubject"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/paddingStart"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivSnoozed"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_snoozed"
|
||||||
|
android:src="@drawable/baseline_timelapse_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvSubject"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivType"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivBrowsed"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_browsed"
|
||||||
|
android:src="@drawable/baseline_playlist_add_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvSubject"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivSnoozed"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivAnswered"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_answered"
|
||||||
|
android:src="@drawable/baseline_reply_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvSubject"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivBrowsed"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivPlain"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_plain_only"
|
||||||
|
android:src="@drawable/baseline_notes_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvSubject"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAnswered"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivReceipt"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_receipt"
|
||||||
|
android:src="@drawable/baseline_playlist_add_check_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvSubject"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivPlain"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivAttachments"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_attachment"
|
||||||
|
android:src="@drawable/baseline_attachment_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvSubject"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivReceipt"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvSubject"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:ellipsize="middle"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:minHeight="21dp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="Subject"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAttachments"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvFrom" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvFolder"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:ellipsize="start"
|
||||||
|
android:gravity="end|center_vertical"
|
||||||
|
android:maxWidth="120dp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="Folder"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/tvSubject"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/tvCount"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/tvSubject"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvCount"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="3dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="3"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/tvSubject"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/ivThread"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivThread"
|
||||||
|
android:layout_width="15dp"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_thread"
|
||||||
|
android:src="@drawable/baseline_message_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/tvSubject"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/ivFlagged"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvSubject" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivFlagged"
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||||
|
android:contentDescription="@string/title_legend_flagged"
|
||||||
|
android:paddingTop="6dp"
|
||||||
|
android:paddingBottom="6dp"
|
||||||
|
android:src="@drawable/baseline_star_24"
|
||||||
|
android:visibility="visible"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/tvSubject"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/paddingEnd"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvPreview"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:fontFamily="monospace"
|
||||||
|
android:maxLines="2"
|
||||||
|
android:text="Preview"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
android:textStyle="italic"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/paddingEnd"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/paddingStart"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvSubject" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvError"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:text="error"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
android:textColor="?attr/colorWarning"
|
||||||
|
android:textIsSelectable="true"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/paddingEnd"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/paddingStart"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvPreview" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingEnd"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/vwStatus"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/vwStatus"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:background="@color/colorPrimary"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingBottom"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="12dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvError" />
|
||||||
|
|
||||||
|
<eu.faircode.email.ContentLoadingProgressBar
|
||||||
|
android:id="@+id/pbLoading"
|
||||||
|
style="@style/Base.Widget.AppCompat.ProgressBar"
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:indeterminate="true"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/paddingBottom"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/vwRipple"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/paddingBottom"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,325 @@
|
|||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:id="@+id/clItem"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/activatableItemBackground"
|
||||||
|
android:descendantFocusability="beforeDescendants"
|
||||||
|
android:focusable="true"
|
||||||
|
android:focusableInTouchMode="true">
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/vwColor"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:background="@color/colorAccent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingTop"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="3dp"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivExpander"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical|center_horizontal"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||||
|
android:contentDescription="@string/title_legend_expander"
|
||||||
|
android:src="@drawable/expander"
|
||||||
|
android:visibility="visible"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/vwColor"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingStart"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/ivExpander"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivAvatar"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:contentDescription="@string/title_legend_avatar"
|
||||||
|
android:paddingStart="6dp"
|
||||||
|
android:paddingEnd="6dp"
|
||||||
|
android:src="@drawable/baseline_person_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintDimensionRatio="1:1"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/paddingStart"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvFrom"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:minHeight="24dp"
|
||||||
|
android:text="From"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/tvSize"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAvatar"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvSize"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="123 KB"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
android:textColor="?attr/colorUnread"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFrom"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/tvTime"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvTime"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="Time"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFrom"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/ivFlagged"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvSubject"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:minHeight="24dp"
|
||||||
|
android:text="Subject"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/ivFlagged"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAvatar"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvFrom" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivFlagged"
|
||||||
|
android:layout_width="36dp"
|
||||||
|
android:layout_height="36dp"
|
||||||
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||||
|
android:contentDescription="@string/title_legend_flagged"
|
||||||
|
android:padding="6dp"
|
||||||
|
android:src="@drawable/baseline_star_24"
|
||||||
|
android:visibility="visible"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/paddingEnd"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/paddingTop" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivType"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_folder_type"
|
||||||
|
android:src="@drawable/baseline_edit_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAvatar"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivSnoozed"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_snoozed"
|
||||||
|
android:src="@drawable/baseline_timelapse_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivType"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivBrowsed"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_browsed"
|
||||||
|
android:src="@drawable/baseline_playlist_add_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivSnoozed"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivAnswered"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_answered"
|
||||||
|
android:src="@drawable/baseline_reply_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivBrowsed"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivPlain"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_plain_only"
|
||||||
|
android:src="@drawable/baseline_notes_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAnswered"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivReceipt"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_receipt"
|
||||||
|
android:src="@drawable/baseline_playlist_add_check_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivPlain"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivAttachments"
|
||||||
|
android:layout_width="21dp"
|
||||||
|
android:layout_height="21dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_attachment"
|
||||||
|
android:src="@drawable/baseline_attachment_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivReceipt"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvFolder"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:gravity="end|center_vertical"
|
||||||
|
android:minHeight="21dp"
|
||||||
|
android:text="folder"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/tvCount"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/ivAttachments"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvSubject" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvCount"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="3dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="3"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/ivThread"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/ivThread"
|
||||||
|
android:layout_width="15dp"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:contentDescription="@string/title_legend_thread"
|
||||||
|
android:src="@drawable/baseline_message_24"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/tvFolder"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/ivFlagged"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/tvFolder" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvPreview"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:fontFamily="monospace"
|
||||||
|
android:maxLines="2"
|
||||||
|
android:text="Preview"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
android:textStyle="italic"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/paddingEnd"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/paddingStart"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvFolder" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tvError"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
|
android:layout_marginTop="3dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
|
android:text="error"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
|
android:textColor="?attr/colorWarning"
|
||||||
|
android:textIsSelectable="true"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/paddingEnd"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/paddingStart"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvPreview" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingEnd"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/vwStatus"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/vwStatus"
|
||||||
|
android:layout_width="6dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:background="@color/colorPrimary"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/paddingBottom"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/paddingBottom"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="3dp"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvError" />
|
||||||
|
|
||||||
|
<eu.faircode.email.ContentLoadingProgressBar
|
||||||
|
android:id="@+id/pbLoading"
|
||||||
|
style="@style/Base.Widget.AppCompat.ProgressBar"
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
android:indeterminate="true"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/paddingBottom"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/vwRipple"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/paddingBottom"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in new issue