app/src/main/res/layout/chat_from_other_row.xml
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp">
<ImageView
android:id="@+id/image_gchat_profile_other"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:contentDescription="@string/user_icon"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text_chat_date" />
<TextView
android:id="@+id/text_chat_user_other"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:textSize="16sp"
app:layout_constraintStart_toEndOf="@+id/image_gchat_profile_other"
app:layout_constraintTop_toBottomOf="@+id/text_chat_date" />
<androidx.cardview.widget.CardView
android:id="@+id/card_gchat_message_other"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardBackgroundColor="#eef1f6"
app:cardCornerRadius="12dp"
app:cardElevation="0dp"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="true"
app:layout_constraintStart_toEndOf="@+id/image_gchat_profile_other"
app:layout_constraintTop_toBottomOf="@+id/text_chat_user_other">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/text_gchat_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:maxWidth="260dp"
android:paddingLeft="12dp"
android:paddingTop="8dp"
android:paddingRight="12dp"
android:textColor="#000000"
android:textSize="16sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/text_chat_timestamp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#C0C0C0"
android:textSize="10sp"
app:layout_constraintBottom_toBottomOf="@+id/card_gchat_message_other"
app:layout_constraintStart_toEndOf="@+id/card_gchat_message_other"
tools:ignore="SmallSp" />
</androidx.constraintlayout.widget.ConstraintLayout>