forked from github/wulkanowy-mirror
70 lines
3.1 KiB
XML
70 lines
3.1 KiB
XML
![]() |
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<com.google.android.material.card.MaterialCardView 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:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginHorizontal="8dp"
|
||
|
android:layout_marginTop="12dp"
|
||
|
app:cardElevation="4dp">
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/notifications_center_item_date"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginStart="16dp"
|
||
|
android:layout_marginTop="16dp"
|
||
|
android:layout_marginEnd="16dp"
|
||
|
android:textColor="?android:textColorSecondary"
|
||
|
android:textSize="14sp"
|
||
|
app:layout_constraintEnd_toStartOf="@id/notifications_center_item_icon"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:text="@tools:sample/date/ddmmyy" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/notifications_center_item_title"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginStart="16dp"
|
||
|
android:layout_marginTop="6dp"
|
||
|
android:layout_marginEnd="16dp"
|
||
|
android:textSize="15sp"
|
||
|
app:layout_constraintEnd_toStartOf="@id/notifications_center_item_icon"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toBottomOf="@id/notifications_center_item_date"
|
||
|
tools:text="@tools:sample/lorem" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/notifications_center_item_content"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginStart="16dp"
|
||
|
android:layout_marginEnd="16dp"
|
||
|
android:layout_marginBottom="16dp"
|
||
|
android:ellipsize="end"
|
||
|
android:maxLines="5"
|
||
|
android:textSize="16sp"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/notifications_center_item_icon"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toBottomOf="@id/notifications_center_item_title"
|
||
|
tools:text="@tools:sample/lorem/random" />
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/notifications_center_item_icon"
|
||
|
android:layout_width="32dp"
|
||
|
android:layout_height="32dp"
|
||
|
android:layout_marginTop="24dp"
|
||
|
android:layout_marginEnd="16dp"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
app:tint="?colorPrimary"
|
||
|
tools:ignore="ContentDescription"
|
||
|
tools:src="@tools:sample/avatars" />
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
</com.google.android.material.card.MaterialCardView>
|