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

80 lines
3.3 KiB
XML
Raw Normal View History

2018-08-13 06:59:05 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-01-29 11:06:53 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-13 06:59:05 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2019-01-29 11:06:53 +00:00
android:layout_height="wrap_content">
2018-08-13 06:59:05 +00:00
2019-01-29 11:06:53 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/clItem"
android:layout_width="match_parent"
2018-08-13 06:59:05 +00:00
android:layout_height="wrap_content"
2019-01-29 11:06:53 +00:00
android:layout_marginTop="3dp"
android:layout_marginBottom="3dp">
2018-08-13 06:59:05 +00:00
2019-01-29 11:06:53 +00:00
<TextView
android:id="@+id/tvFolder"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:ellipsize="start"
android:singleLine="true"
android:text="Folder"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2018-08-13 06:59:05 +00:00
2019-01-29 11:06:53 +00:00
<TextView
android:id="@+id/tvMessage"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:gravity="end"
android:text="1234567"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toEndOf="@id/tvFolder"
app:layout_constraintTop_toTopOf="parent" />
2018-12-01 13:02:27 +00:00
2019-01-29 11:06:53 +00:00
<TextView
android:id="@+id/tvOperation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:ellipsize="end"
android:maxLines="1"
android:text="Name"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toStartOf="@+id/tvTime"
app:layout_constraintStart_toEndOf="@id/tvMessage"
app:layout_constraintTop_toTopOf="parent" />
2018-12-01 13:02:27 +00:00
2019-01-29 11:06:53 +00:00
<TextView
android:id="@+id/tvTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="6dp"
android:text="Time"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2018-12-01 14:13:57 +00:00
2019-01-29 11:06:53 +00:00
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="tvFolder,tvMessage,tvOperation,tvTime" />
<TextView
android:id="@+id/tvError"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="6dp"
android:text="error"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/barrier" />
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>