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

91 lines
3.6 KiB
XML
Raw Normal View History

2019-12-05 16:51:12 +03:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-12-05 16:51:12 +03:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/breadcrumbsRoot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-06-09 12:51:04 +03:00
android:background="?android:colorBackground"
2019-12-05 16:51:12 +03:00
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground">
<View
android:id="@+id/breadcrumbsUnreadIndicator"
android:layout_width="4dp"
android:layout_height="0dp"
2021-06-09 12:51:04 +03:00
android:background="?colorSecondary"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible" />
2019-12-05 16:51:12 +03:00
<ImageView
android:id="@+id/breadcrumbsImageView"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_marginStart="12dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2021-02-12 20:00:10 +03:00
tools:ignore="ContentDescription"
tools:src="@sample/room_round_avatars" />
2019-12-05 16:51:12 +03:00
<im.vector.app.features.home.room.list.UnreadCounterBadgeView
android:id="@+id/breadcrumbsUnreadCounterBadgeView"
style="@style/Widget.Vector.TextView.Micro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
2019-12-16 12:20:38 +03:00
android:minWidth="18dp"
android:minHeight="18dp"
2021-06-09 12:51:04 +03:00
android:textColor="?colorOnError"
android:visibility="gone"
app:layout_constraintCircle="@+id/breadcrumbsImageView"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="28dp"
tools:background="@drawable/bg_unread_highlight"
2019-12-07 00:00:49 +03:00
tools:ignore="MissingConstraints"
tools:text="24"
tools:visibility="visible" />
2020-01-11 22:43:47 +03:00
<TextView
android:id="@+id/breadcrumbsTypingView"
style="@style/Widget.Vector.TextView.Micro"
2020-01-11 22:43:47 +03:00
android:layout_width="20dp"
android:layout_height="20dp"
2021-06-09 12:51:04 +03:00
android:background="@drawable/circle"
android:backgroundTint="?colorPrimary"
2020-01-11 22:43:47 +03:00
android:gravity="center"
2020-01-12 00:12:56 +03:00
android:text="@string/ellipsis"
2021-06-09 12:51:04 +03:00
android:textColor="?colorOnPrimary"
2020-01-11 22:43:47 +03:00
android:textStyle="bold"
android:visibility="gone"
app:layout_constraintCircle="@+id/breadcrumbsImageView"
app:layout_constraintCircleAngle="135"
app:layout_constraintCircleRadius="28dp"
2020-01-12 00:12:56 +03:00
tools:ignore="MissingConstraints"
2020-01-11 22:43:47 +03:00
tools:visibility="visible" />
<ImageView
android:id="@+id/breadcrumbsDraftBadge"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/circle"
2021-02-12 20:00:10 +03:00
android:contentDescription="@string/a11y_unsent_draft"
android:padding="3dp"
android:src="@drawable/ic_edit"
android:visibility="gone"
app:layout_constraintCircle="@+id/breadcrumbsImageView"
2020-01-11 22:43:47 +03:00
app:layout_constraintCircleAngle="225"
app:layout_constraintCircleRadius="28dp"
2019-12-07 00:00:49 +03:00
tools:ignore="MissingConstraints"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>