element-android/vector/src/main/res/layout/item_group.xml

65 lines
2.8 KiB
XML
Raw Normal View History

2018-11-05 20:34:18 +03:00
<?xml version="1.0" encoding="utf-8"?>
<im.vector.app.core.platform.CheckableConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-05-15 20:44:06 +03:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-11-05 20:34:18 +03:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/itemGroupLayout"
android:layout_width="match_parent"
2019-05-29 11:21:02 +03:00
android:layout_height="65dp"
2021-03-12 00:35:11 +03:00
android:background="@drawable/bg_space_item"
2018-11-05 20:34:18 +03:00
android:clickable="true"
android:focusable="true"
2019-06-06 10:50:26 +03:00
android:foreground="?attr/selectableItemBackground">
2019-05-29 11:21:02 +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-12 19:44:12 +03:00
android:contentDescription="@string/avatar"
2019-05-29 11:21:02 +03:00
android:duplicateParentState="true"
app:layout_constraintBottom_toTopOf="@+id/groupBottomSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@sample/room_round_avatars" />
<TextView
2019-05-29 11:21:02 +03:00
android:id="@+id/groupNameView"
style="@style/Widget.Vector.TextView.Subtitle"
2019-05-29 11:21:02 +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"
2019-05-29 11:21:02 +03:00
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/groupBottomSeparator"
app:layout_constraintEnd_toStartOf="@+id/groupAvatarChevron"
app:layout_constraintStart_toEndOf="@+id/groupAvatarImageView"
app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/lorem/random" />
2019-05-29 11:21:02 +03:00
<ImageView
android:id="@+id/groupAvatarChevron"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="21dp"
2021-02-12 19:44:12 +03:00
android:importantForAccessibility="no"
2019-05-29 13:21:45 +03:00
android:src="@drawable/ic_arrow_right"
2019-05-29 11:21:02 +03:00
app:layout_constraintBottom_toTopOf="@+id/groupBottomSeparator"
app:layout_constraintEnd_toEndOf="parent"
2020-10-08 10:22:55 +03:00
app:layout_constraintTop_toTopOf="parent"
2021-06-09 12:51:04 +03:00
app:tint="?vctr_content_primary"
2020-10-08 10:22:55 +03:00
tools:ignore="MissingPrefix" />
2019-05-29 11:21:02 +03:00
<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"
2019-05-29 11:21:02 +03:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</im.vector.app.core.platform.CheckableConstraintLayout>