2019-08-01 20:47:15 +02: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"
|
2017-11-30 20:12:09 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-01-23 06:19:30 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-02-27 02:14:13 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-11-30 20:12:09 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="14dp"
|
2019-08-01 20:47:15 +02:00
|
|
|
android:paddingRight="14dp"
|
|
|
|
android:paddingBottom="10dp">
|
2017-02-27 02:14:13 +01:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<androidx.emoji.widget.EmojiTextView
|
2017-11-30 20:12:09 +01:00
|
|
|
android:id="@+id/notification_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-03-07 20:42:01 +01:00
|
|
|
android:layout_marginTop="8dp"
|
2018-09-16 18:54:12 +02:00
|
|
|
android:drawableStart="@drawable/ic_person_add_24dp"
|
2019-08-01 20:47:15 +02:00
|
|
|
android:drawablePadding="10dp"
|
2017-11-30 20:12:09 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingStart="28dp"
|
|
|
|
android:textColor="?android:textColorTertiary"
|
2017-12-01 21:52:10 +01:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2019-08-01 20:47:15 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2017-11-30 20:12:09 +01:00
|
|
|
tools:text="Someone followed you" />
|
2017-02-27 02:14:13 +01:00
|
|
|
|
2019-05-26 08:46:08 +02:00
|
|
|
<ImageView
|
2017-11-30 20:12:09 +01:00
|
|
|
android:id="@+id/notification_avatar"
|
2019-08-01 20:47:15 +02:00
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="42dp"
|
2017-11-30 20:12:09 +01:00
|
|
|
android:layout_alignParentStart="true"
|
2019-08-01 20:47:15 +02:00
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="6dp"
|
2017-11-30 20:12:09 +01:00
|
|
|
android:contentDescription="@string/action_view_profile"
|
2018-07-30 15:36:22 +02:00
|
|
|
android:scaleType="centerCrop"
|
2019-08-01 20:47:15 +02:00
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/notification_text"
|
|
|
|
tools:src="@drawable/avatar_default" />
|
2017-02-27 02:14:13 +01:00
|
|
|
|
2018-12-17 15:25:35 +01:00
|
|
|
<androidx.emoji.widget.EmojiTextView
|
2017-11-30 20:12:09 +01:00
|
|
|
android:id="@+id/notification_display_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-01 20:47:15 +02:00
|
|
|
android:layout_marginStart="14dp"
|
2017-11-30 20:12:09 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
2017-12-01 21:52:10 +01:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2017-11-30 20:12:09 +01:00
|
|
|
android:textStyle="normal|bold"
|
2019-08-01 20:47:15 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/notification_username"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/notification_avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/notification_avatar"
|
2017-11-30 20:12:09 +01:00
|
|
|
tools:text="Test User" />
|
2017-02-27 02:14:13 +01:00
|
|
|
|
2017-11-30 20:12:09 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/notification_username"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-01 20:47:15 +02:00
|
|
|
android:layout_marginStart="14dp"
|
2017-11-30 20:12:09 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
2017-12-01 21:52:10 +01:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2019-08-01 20:47:15 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/notification_avatar"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/notification_avatar"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/notification_display_name"
|
2017-11-30 20:12:09 +01:00
|
|
|
tools:text="\@testuser" />
|
2017-02-27 02:14:13 +01:00
|
|
|
|
2019-08-01 20:47:15 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|