2020-12-29 19:34:25 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<im.vector.app.core.platform.CheckableConstraintLayout 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"
|
|
|
|
android:id="@+id/itemGroupLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="65dp"
|
|
|
|
android:background="@drawable/bg_space_item"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2021-12-07 19:10:41 +03:00
|
|
|
android:foreground="?attr/selectableItemBackground"
|
|
|
|
tools:viewBindingIgnore="true">
|
2020-12-29 19:34:25 +03:00
|
|
|
|
2021-03-22 13:40:28 +03:00
|
|
|
<Space
|
|
|
|
android:id="@+id/indent"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-12-29 19:34:25 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/groupAvatarImageView"
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="42dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
|
|
|
android:duplicateParentState="true"
|
2021-12-07 19:10:41 +03:00
|
|
|
android:importantForAccessibility="no"
|
2021-12-02 00:13:21 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/groupBottomSeparator"
|
2021-03-22 13:40:28 +03:00
|
|
|
app:layout_constraintStart_toEndOf="@id/indent"
|
2020-12-29 19:34:25 +03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-05-10 23:34:13 +03:00
|
|
|
tools:src="@sample/space_avatars" />
|
2020-12-29 19:34:25 +03:00
|
|
|
|
2021-04-20 11:29:44 +03:00
|
|
|
<im.vector.app.features.home.room.list.UnreadCounterBadgeView
|
|
|
|
android:id="@+id/groupCounterBadge"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Micro"
|
2021-04-20 11:29:44 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="16dp"
|
|
|
|
android:minHeight="16dp"
|
2021-04-23 18:26:17 +03:00
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:paddingEnd="4dp"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?colorOnError"
|
2021-04-23 18:26:17 +03:00
|
|
|
android:visibility="gone"
|
2021-12-02 00:19:33 +03:00
|
|
|
app:layout_constraintCircle="@id/groupAvatarImageView"
|
2021-04-20 11:29:44 +03:00
|
|
|
app:layout_constraintCircleAngle="45"
|
|
|
|
app:layout_constraintCircleRadius="24dp"
|
|
|
|
tools:background="@drawable/bg_unread_highlight"
|
2021-04-23 18:26:17 +03:00
|
|
|
tools:text="147"
|
|
|
|
tools:visibility="visible" />
|
2021-04-20 11:29:44 +03:00
|
|
|
|
2020-12-29 19:34:25 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/groupNameView"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Subtitle"
|
2020-12-29 19:34:25 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_primary"
|
2020-12-29 19:34:25 +03:00
|
|
|
android:textStyle="bold"
|
2021-12-02 00:13:21 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/groupDescView"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/groupChildrenCollapse"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/groupAvatarImageView"
|
2020-12-29 19:34:25 +03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-23 18:26:17 +03:00
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/groupDescView"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Body"
|
2021-04-23 18:26:17 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_secondary"
|
2021-06-14 23:10:12 +03:00
|
|
|
android:visibility="gone"
|
2021-12-02 00:13:21 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/groupBottomSeparator"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/groupChildrenCollapse"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/groupAvatarImageView"
|
2021-04-23 18:26:17 +03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/groupNameView"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
2021-06-14 23:10:12 +03:00
|
|
|
tools:text="@tools:sample/lorem/random"
|
|
|
|
tools:visibility="visible" />
|
2020-12-29 19:34:25 +03:00
|
|
|
|
2021-03-12 00:35:11 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/groupChildrenCollapse"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
2021-03-22 13:40:28 +03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2021-03-12 00:35:11 +03:00
|
|
|
android:importantForAccessibility="no"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:src="@drawable/ic_expand_less"
|
2021-03-12 00:35:11 +03:00
|
|
|
android:visibility="gone"
|
2021-12-02 00:13:21 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/groupBottomSeparator"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/groupTmpLeave"
|
2021-03-12 00:35:11 +03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-06-09 12:51:04 +03:00
|
|
|
app:tint="?vctr_content_primary"
|
2021-03-22 13:40:28 +03:00
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:visibility="visible" />
|
2021-03-12 00:35:11 +03:00
|
|
|
|
2021-02-25 20:22:16 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/groupTmpLeave"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
2022-03-07 11:58:40 +03:00
|
|
|
android:layout_marginEnd="10dp"
|
2021-03-22 13:40:28 +03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2021-02-25 20:22:16 +03:00
|
|
|
android:importantForAccessibility="no"
|
2021-03-22 13:40:28 +03:00
|
|
|
android:padding="4dp"
|
2021-03-19 19:30:53 +03:00
|
|
|
android:src="@drawable/ic_more_vertical"
|
2021-02-25 20:22:16 +03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/groupAvatarChevron"
|
2021-03-22 13:40:28 +03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-06-09 12:51:04 +03:00
|
|
|
app:tint="?vctr_content_secondary" />
|
2021-02-25 20:22:16 +03:00
|
|
|
|
2020-12-29 19:34:25 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/groupAvatarChevron"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="21dp"
|
2021-02-23 13:52:29 +03:00
|
|
|
android:importantForAccessibility="no"
|
2020-12-29 19:34:25 +03:00
|
|
|
android:src="@drawable/ic_arrow_right"
|
2021-03-22 13:40:28 +03:00
|
|
|
android:visibility="gone"
|
2021-12-02 00:13:21 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/groupBottomSeparator"
|
2020-12-29 19:34:25 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-06-09 12:51:04 +03:00
|
|
|
app:tint="?vctr_content_primary"
|
2020-12-29 19:34:25 +03:00
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/groupBottomSeparator"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:background="?vctr_list_separator_on_surface"
|
2020-12-29 19:34:25 +03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
2021-08-01 23:03:59 +03:00
|
|
|
</im.vector.app.core.platform.CheckableConstraintLayout>
|