2019-11-11 08:30:33 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout 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="wrap_content">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/clItem"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/activatableItemBackground"
|
|
|
|
android:foreground="?attr/selectableItemBackground"
|
|
|
|
android:padding="3dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivAttachments"
|
2020-06-12 14:49:57 +00:00
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
2019-11-11 08:30:33 +00:00
|
|
|
android:contentDescription="@string/title_legend_attachment"
|
2020-01-24 10:00:09 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-11-11 08:30:33 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-09-28 07:18:56 +00:00
|
|
|
app:srcCompat="@drawable/twotone_attachment_24" />
|
2019-11-11 08:30:33 +00:00
|
|
|
|
2020-02-28 16:34:43 +00:00
|
|
|
<eu.faircode.email.FixedTextView
|
2019-11-11 08:30:33 +00:00
|
|
|
android:id="@+id/tvName"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:ellipsize="middle"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="Name"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
2020-07-02 14:51:06 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ivStatus"
|
2019-11-11 08:30:33 +00:00
|
|
|
app:layout_constraintHorizontal_weight="4"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/ivAttachments"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2020-02-28 16:34:43 +00:00
|
|
|
<eu.faircode.email.FixedTextView
|
2019-11-11 08:30:33 +00:00
|
|
|
android:id="@+id/tvType"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-07-02 14:51:06 +00:00
|
|
|
android:layout_marginEnd="6dp"
|
2019-11-11 08:30:33 +00:00
|
|
|
android:ellipsize="start"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="text/plain"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/tvSize"
|
|
|
|
app:layout_constraintHorizontal_weight="1"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tvName"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvName" />
|
|
|
|
|
2020-02-28 16:34:43 +00:00
|
|
|
<eu.faircode.email.FixedTextView
|
2019-11-11 08:30:33 +00:00
|
|
|
android:id="@+id/tvSize"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-27 08:12:39 +00:00
|
|
|
android:layout_marginEnd="6dp"
|
2019-11-11 08:30:33 +00:00
|
|
|
android:text="10 kB"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
2020-01-27 08:12:39 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ivStatus"
|
2019-11-11 08:30:33 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/tvType"
|
2020-07-02 14:51:06 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvName" />
|
2020-01-24 10:00:09 +00:00
|
|
|
|
2020-01-27 08:12:39 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivStatus"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ibSave"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-09-28 07:18:56 +00:00
|
|
|
app:srcCompat="@drawable/twotone_visibility_24" />
|
2020-01-27 08:12:39 +00:00
|
|
|
|
2020-01-24 10:00:09 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/ibSave"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/title_legend_save"
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-09-28 07:18:56 +00:00
|
|
|
app:srcCompat="@drawable/twotone_save_24" />
|
2019-11-11 08:30:33 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</FrameLayout>
|