element-android/app/src/main/res/layout/item_room.xml

67 lines
2.8 KiB
XML
Raw Normal View History

2018-10-19 15:26:38 +03:00
<?xml version="1.0" encoding="utf-8"?>
<im.vector.riotredesign.core.platform.CheckableFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
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"
android:layout_height="wrap_content"
android:background="@drawable/bg_room_item"
2018-10-30 13:47:05 +03:00
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
android:paddingLeft="8dp"
android:paddingRight="16dp">
2018-10-29 19:20:08 +03:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-10-30 13:47:05 +03:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:duplicateParentState="true"
2018-10-30 13:47:05 +03:00
android:minHeight="48dp">
<ImageView
android:id="@+id/roomAvatarImageView"
2018-10-30 13:47:05 +03:00
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="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"
2018-10-30 13:47:05 +03:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
2018-10-30 13:47:05 +03:00
android:duplicateParentState="true"
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"
2018-10-30 13:47:05 +03:00
app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/full_names" />
<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" />
</androidx.constraintlayout.widget.ConstraintLayout>
2018-10-30 13:47:05 +03:00
</im.vector.riotredesign.core.platform.CheckableFrameLayout>