2018-10-19 15:26:38 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-10-28 21:18:14 +03:00
|
|
|
|
2019-05-16 20:14:02 +03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-10-28 21:18:14 +03:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-10-19 15:26:38 +03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-10-29 19:20:08 +03:00
|
|
|
android:id="@+id/itemRoomLayout"
|
2018-10-19 15:26:38 +03:00
|
|
|
android:layout_width="match_parent"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-16 20:14:02 +03:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2018-10-30 13:47:05 +03:00
|
|
|
android:clickable="true"
|
2019-01-25 20:04:08 +03:00
|
|
|
android:focusable="true"
|
2019-05-16 20:14:02 +03:00
|
|
|
android:minHeight="48dp"
|
2019-03-18 16:56:08 +03:00
|
|
|
android:paddingStart="8dp"
|
2019-01-25 20:04:08 +03:00
|
|
|
android:paddingLeft="8dp"
|
2019-03-18 16:56:08 +03:00
|
|
|
android:paddingEnd="16dp"
|
2019-01-25 20:04:08 +03:00
|
|
|
android:paddingRight="16dp">
|
2018-10-29 19:20:08 +03:00
|
|
|
|
2019-05-16 20:14:02 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/roomAvatarImageView"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/roomNameView"
|
|
|
|
android:layout_width="0dp"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-16 20:14:02 +03:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2018-10-29 22:29:09 +03:00
|
|
|
android:duplicateParentState="true"
|
2019-05-16 20:14:02 +03:00
|
|
|
android:textColor="@color/color_room_title"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/roomUnreadCounterBadgeView"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/roomAvatarImageView"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
2018-10-30 13:47:05 +03:00
|
|
|
|
2019-05-16 20:14:02 +03:00
|
|
|
<im.vector.riotredesign.features.home.room.list.UnreadCounterBadgeView
|
|
|
|
android:id="@+id/roomUnreadCounterBadgeView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="24dp"
|
|
|
|
android:minHeight="24dp"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:background="@drawable/bg_unread_highlight"
|
|
|
|
tools:text="115" />
|
2018-10-28 21:18:14 +03:00
|
|
|
|
2019-05-16 20:14:02 +03:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|