2020-07-31 19:53:32 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-09-11 13:27:09 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-07-31 19:53:32 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-11 13:27:09 +00:00
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:padding="8dp">
|
|
|
|
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
|
|
android:id="@+id/ivProfilePic"
|
|
|
|
android:layout_width="@dimen/notification_image_size"
|
|
|
|
android:layout_height="@dimen/notification_image_size"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:actualImageScaleType="centerCrop"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/barrier"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:roundAsCircle="true"
|
|
|
|
tools:placeholderImage="@mipmap/ic_launcher" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/barrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="end"
|
|
|
|
app:constraint_referenced_ids="ivProfilePic" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/tvUsername"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/tvComment"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/ivPreviewPic"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/barrier"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="username" />
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.RamboTextView
|
|
|
|
android:id="@+id/tvComment"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:linksClickable="true"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
|
|
|
android:textStyle="italic"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/tvSubComment"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/ivPreviewPic"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tvUsername"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvUsername"
|
|
|
|
tools:text="comment comment comment comment comment comment comment comment comment comment comment comment comment " />
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.RamboTextView
|
|
|
|
android:id="@+id/tvSubComment"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:autoLink="web|email"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:linksClickable="true"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat"
|
2020-09-19 08:03:01 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/preview_barrier"
|
2020-09-11 13:27:09 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@id/tvUsername"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvComment"
|
2020-09-19 08:03:01 +00:00
|
|
|
tools:text="sub-comment long long long long long long long long long long" />
|
2020-09-11 13:27:09 +00:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/preview_barrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="start"
|
|
|
|
app:constraint_referenced_ids="ivPreviewPic" />
|
|
|
|
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
|
|
android:id="@+id/ivPreviewPic"
|
|
|
|
android:layout_width="@dimen/notification_image_size"
|
|
|
|
android:layout_height="@dimen/notification_image_size"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/preview_barrier"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:placeholderImage="@mipmap/ic_launcher"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-09-19 08:03:01 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/tvDate"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
|
|
android:textStyle="italic"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-11-06 23:09:29 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-09-19 08:03:01 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvSubComment"
|
|
|
|
tools:text="some long long long long long date" />
|
2020-09-11 13:27:09 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|