2021-10-25 19:45:56 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-11-14 19:54:48 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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:background="?android:attr/selectableItemBackground"
|
|
|
|
android:orientation="horizontal" android:clickable="true"
|
|
|
|
android:focusable="true">
|
2021-10-31 04:17:08 +01:00
|
|
|
<ImageView
|
2021-11-23 14:55:55 +01:00
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp" app:srcCompat="@drawable/ic_sms_gray_24dp"
|
2021-11-14 19:54:48 +01:00
|
|
|
android:id="@+id/main_item_image" app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-11-23 14:55:55 +01:00
|
|
|
android:layout_marginStart="15dp" android:layout_marginTop="13dp"/>
|
2021-11-12 01:41:29 +01:00
|
|
|
<TextView
|
2021-11-14 19:54:48 +01:00
|
|
|
android:text="ntfy.sh/example"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content" android:id="@+id/main_item_text"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/main_item_status"
|
|
|
|
android:layout_marginStart="10dp" app:layout_constraintStart_toEndOf="@+id/main_item_image"
|
|
|
|
app:layout_constraintVertical_bias="0.0" android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textColor="@color/primaryTextColor" android:layout_marginTop="10dp"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/main_item_instant_image"/>
|
|
|
|
<TextView
|
2021-12-31 01:34:25 +01:00
|
|
|
android:text="89 notifications, reconnecting ... This may wrap in the case of UnifiedPush"
|
|
|
|
android:layout_width="0dp"
|
2021-11-14 19:54:48 +01:00
|
|
|
android:layout_height="wrap_content" android:id="@+id/main_item_status"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/main_item_text"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/main_item_text" app:layout_constraintBottom_toBottomOf="parent"
|
2021-12-31 01:34:25 +01:00
|
|
|
android:layout_marginBottom="10dp" app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/main_item_new" android:layout_marginEnd="10dp"/>
|
2021-11-14 19:54:48 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="20dp"
|
2021-11-22 21:45:43 +01:00
|
|
|
android:layout_height="24dp" app:srcCompat="@drawable/ic_notifications_off_time_gray_outline_24dp"
|
|
|
|
android:id="@+id/main_item_notification_disabled_until_image"
|
2021-11-14 19:54:48 +01:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/main_item_text"
|
2021-11-22 21:45:43 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/main_item_notification_disabled_forever_image"
|
|
|
|
android:paddingTop="3dp" android:layout_marginEnd="3dp"/>
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="24dp" app:srcCompat="@drawable/ic_notifications_off_gray_outline_24dp"
|
|
|
|
android:id="@+id/main_item_notification_disabled_forever_image"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/main_item_notification_disabled_until_image"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/main_item_instant_image" android:paddingTop="3dp"
|
|
|
|
android:layout_marginEnd="3dp"/>
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="24dp" app:srcCompat="@drawable/ic_bolt_gray_24dp"
|
|
|
|
android:id="@+id/main_item_instant_image"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/main_item_notification_disabled_forever_image"
|
2021-11-14 23:05:35 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/main_item_date" android:paddingTop="3dp"/>
|
2021-11-14 19:54:48 +01:00
|
|
|
<TextView
|
|
|
|
android:text="10:13"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" android:id="@+id/main_item_date"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/main_item_instant_image"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="15dp"
|
2021-11-14 23:05:35 +01:00
|
|
|
android:paddingTop="2dp"/>
|
2021-11-15 22:24:31 +01:00
|
|
|
<TextView
|
|
|
|
android:text="99+"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp" android:id="@+id/main_item_new"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/ic_circle"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/main_item_date"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/main_item_date"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/main_item_instant_image"
|
|
|
|
android:textSize="10sp" android:textStyle="bold"/>
|
2021-11-14 19:54:48 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2021-10-25 19:45:56 +02:00
|
|
|
|