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

182 lines
7.6 KiB
XML
Raw Normal View History

2018-08-02 13:33:06 +00:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
android:layout_width="match_parent"
2018-08-14 20:12:25 +00:00
android:layout_height="wrap_content">
2018-08-02 13:33:06 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/clItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/drawableItemBackground">
2018-08-11 18:54:08 +00:00
<View
android:id="@+id/vwColor"
android:layout_width="6dp"
android:layout_height="0dp"
android:background="@color/colorAccent"
app:layout_constraintBottom_toTopOf="@+id/vSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/ivState"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="6dp"
2018-10-25 07:21:49 +00:00
android:layout_marginEnd="6dp"
android:src="@drawable/baseline_cloud_off_24"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier1"
app:layout_constraintStart_toEndOf="@id/vwColor"
app:layout_constraintTop_toTopOf="parent" />
2018-08-02 13:33:06 +00:00
2018-12-03 09:39:44 +00:00
<ImageView
android:id="@+id/ivUnified"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="6dp"
android:src="@drawable/baseline_folder_special_24"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier2"
2018-12-03 09:39:44 +00:00
app:layout_constraintStart_toEndOf="@id/vwColor"
app:layout_constraintTop_toBottomOf="@+id/barrier1" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="end"
app:constraint_referenced_ids="ivState" />
<View
android:id="@+id/vwLevel"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="@+id/tvKeywords"
app:layout_constraintStart_toEndOf="@id/barrier0"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvName"
android:layout_width="0dp"
2018-12-07 15:03:24 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
2018-10-25 07:21:49 +00:00
android:layout_marginEnd="6dp"
android:ellipsize="start"
android:gravity="center_vertical"
android:singleLine="true"
android:text="Name"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier1"
app:layout_constraintEnd_toStartOf="@+id/tvAfter"
2018-12-03 09:39:44 +00:00
app:layout_constraintStart_toEndOf="@id/vwLevel"
app:layout_constraintTop_toTopOf="parent" />
2018-08-02 13:33:06 +00:00
<TextView
android:id="@+id/tvMessages"
android:layout_width="wrap_content"
android:layout_height="24dp"
android:layout_marginEnd="6dp"
android:gravity="center_vertical"
android:text="123"
android:textAppearance="@android:style/TextAppearance.Small"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier1"
app:layout_constraintEnd_toStartOf="@+id/ivMessages"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/ivMessages"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="6dp"
android:src="@drawable/baseline_mail_outline_24"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2018-08-13 14:44:47 +00:00
2018-10-25 07:21:49 +00:00
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="ivState,tvName,tvMessages,ivMessages" />
2018-08-02 13:33:06 +00:00
<TextView
android:id="@+id/tvType"
android:layout_width="wrap_content"
2018-12-07 15:03:24 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:gravity="center_vertical"
android:text="type"
android:textAppearance="@android:style/TextAppearance.Small"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier2"
2018-12-03 09:39:44 +00:00
app:layout_constraintStart_toEndOf="@id/vwLevel"
2018-10-25 07:21:49 +00:00
app:layout_constraintTop_toBottomOf="@id/barrier1" />
<TextView
android:id="@+id/tvAfter"
android:layout_width="wrap_content"
android:layout_height="24dp"
android:layout_marginEnd="6dp"
android:gravity="center_vertical"
android:text="30"
android:textAppearance="@android:style/TextAppearance.Small"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier2"
app:layout_constraintEnd_toStartOf="@+id/ivSync"
2018-10-25 07:21:49 +00:00
app:layout_constraintTop_toBottomOf="@id/barrier1" />
2018-08-11 18:04:50 +00:00
<ImageView
android:id="@+id/ivSync"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="6dp"
android:src="@drawable/baseline_sync_24"
2018-12-07 15:03:24 +00:00
app:layout_constraintBottom_toTopOf="@+id/barrier2"
app:layout_constraintEnd_toEndOf="parent"
2018-10-25 07:21:49 +00:00
app:layout_constraintTop_toBottomOf="@id/barrier1" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="ivUnified,tvType,tvAfter,ivSync" />
2018-11-26 08:12:44 +00:00
<TextView
android:id="@+id/tvKeywords"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:gravity="center_vertical"
android:text="Keywords"
android:textAppearance="@android:style/TextAppearance.Small"
app:layout_constraintEnd_toEndOf="parent"
2018-12-03 09:39:44 +00:00
app:layout_constraintStart_toEndOf="@id/vwLevel"
2018-11-26 08:12:44 +00:00
app:layout_constraintTop_toBottomOf="@id/barrier2" />
<TextView
android:id="@+id/tvError"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
2018-10-25 07:21:49 +00:00
android:layout_marginEnd="6dp"
android:text="error"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
2018-12-08 18:09:35 +00:00
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/vwColor"
2018-11-26 08:12:44 +00:00
app:layout_constraintTop_toBottomOf="@id/tvKeywords" />
<View
android:id="@+id/vSeparator"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="6dp"
2018-10-25 07:21:49 +00:00
android:layout_marginBottom="6dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvError" />
2018-09-21 15:36:24 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>