wulkanowy-mod/app/src/main/res/layout/item_message.xml

65 lines
2.6 KiB
XML
Raw Normal View History

2020-04-02 13:27:53 -05:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2020-04-02 13:27:53 -05:00
android:id="@+id/relativeLayout"
2018-12-06 11:35:02 -06:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-26 13:54:20 -05:00
android:background="?selectableItemBackground"
2018-12-06 11:35:02 -06:00
android:paddingLeft="16dp"
android:paddingTop="10dp"
android:paddingRight="16dp"
android:paddingBottom="10dp"
2020-05-01 10:38:19 -05:00
tools:context=".ui.modules.message.tab.MessageTabAdapter">
2018-12-06 11:35:02 -06:00
<TextView
android:id="@+id/messageItemAuthor"
2020-04-02 13:27:53 -05:00
android:layout_width="0dp"
2018-12-06 11:35:02 -06:00
android:layout_height="wrap_content"
2020-04-02 13:27:53 -05:00
android:layout_marginEnd="10dp"
2018-12-06 11:35:02 -06:00
android:ellipsize="end"
2020-04-02 13:27:53 -05:00
android:singleLine="true"
2018-12-06 11:35:02 -06:00
android:textSize="15sp"
2020-04-02 13:27:53 -05:00
app:layout_constraintEnd_toStartOf="@+id/messageItemDate"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/lorem/random" />
2018-12-06 11:35:02 -06:00
<TextView
android:id="@+id/messageItemDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="end"
android:textSize="13sp"
2020-04-02 13:27:53 -05:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
2019-08-26 13:54:20 -05:00
tools:text="@tools:sample/date/ddmmyy" />
2018-12-06 11:35:02 -06:00
<TextView
android:id="@+id/messageItemSubject"
2020-04-02 13:27:53 -05:00
android:layout_width="0dp"
2018-12-06 11:35:02 -06:00
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
2020-04-02 13:27:53 -05:00
android:layout_marginEnd="10dp"
2018-12-06 11:35:02 -06:00
android:ellipsize="end"
2020-04-02 13:27:53 -05:00
android:singleLine="true"
2019-08-23 13:37:05 -05:00
android:textColor="?android:textColorSecondary"
2018-12-06 11:35:02 -06:00
android:textSize="12sp"
2020-04-02 13:27:53 -05:00
app:layout_constraintEnd_toStartOf="@id/messageItemAttachmentIcon"
app:layout_constraintStart_toStartOf="@id/messageItemAuthor"
app:layout_constraintTop_toBottomOf="@+id/messageItemAuthor"
app:layout_goneMarginEnd="0dp"
2019-08-26 13:54:20 -05:00
tools:text="@tools:sample/lorem/random" />
2020-04-02 13:27:53 -05:00
<ImageView
android:id="@+id/messageItemAttachmentIcon"
android:layout_width="16dp"
android:layout_height="16dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/messageItemSubject"
app:layout_constraintEnd_toEndOf="@id/messageItemDate"
app:srcCompat="@drawable/ic_attachment"
app:tint="?colorOnBackground"
tools:ignore="ContentDescription"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>