mirror of https://github.com/M66B/FairEmail.git
124 lines
5.3 KiB
XML
124 lines
5.3 KiB
XML
<?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:paddingTop="6dp"
|
|
android:paddingBottom="6dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/ibDelete"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/title_legend_delete"
|
|
android:paddingEnd="12dp"
|
|
android:visibility="visible"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tvType"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/baseline_delete_24" />
|
|
|
|
<ImageView
|
|
android:id="@+id/ivType"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tvType"
|
|
app:layout_constraintStart_toEndOf="@id/ibDelete"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/baseline_attachment_24" />
|
|
|
|
<TextView
|
|
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"
|
|
app:layout_constraintEnd_toStartOf="@+id/tvSize"
|
|
app:layout_constraintHorizontal_weight="4"
|
|
app:layout_constraintStart_toEndOf="@id/ivType"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/ivStatus"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tvType"
|
|
app:layout_constraintEnd_toStartOf="@+id/ibSave"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/baseline_cloud_download_24" />
|
|
|
|
<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="@+id/tvType"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/baseline_save_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvType"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
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" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvSize"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:text="10 kB"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
app:layout_constraintBottom_toBottomOf="@id/tvType"
|
|
app:layout_constraintEnd_toStartOf="@id/ivStatus"
|
|
app:layout_constraintStart_toEndOf="@id/tvType"
|
|
app:layout_constraintTop_toTopOf="@id/tvName" />
|
|
|
|
<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"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/ivType"
|
|
app:layout_constraintTop_toBottomOf="@id/tvType" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressbar"
|
|
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:progress="50"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvError" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</FrameLayout>
|