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"
|
|
|
|
android:foreground="?attr/selectableItemBackground">
|
|
|
|
|
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"
|
2021-02-23 13:52:29 +03:00
|
|
|
android:contentDescription="@string/avatar"
|
2020-12-29 19:34:25 +03:00
|
|
|
android:duplicateParentState="true"
|
|
|
|
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"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/groupNameView"
|
|
|
|
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"
|
|
|
|
android:textColor="?riotx_text_primary"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/groupBottomSeparator"
|
2021-03-12 00:35:11 +03:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/groupChildrenCollapse"
|
2020-12-29 19:34:25 +03:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/groupAvatarImageView"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
|
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"
|
|
|
|
android:src="@drawable/ic_expand_less_white"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/groupBottomSeparator"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/groupTmpLeave"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:tint="?riotx_text_primary"
|
2021-03-22 13:40:28 +03:00
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:src="@drawable/ic_expand_more_white"
|
|
|
|
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"
|
|
|
|
android:layout_marginEnd="4dp"
|
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"
|
|
|
|
app:tint="?riotx_text_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"
|
2020-12-29 19:34:25 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/groupBottomSeparator"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:tint="?riotx_text_primary"
|
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/groupBottomSeparator"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?riotx_header_panel_border_mobile"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
</im.vector.app.core.platform.CheckableConstraintLayout>
|