chat_right_adapter.xml
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/chat_time"
android:layout_marginTop="15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="@color/color_96"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/chat_avatar"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginTop="15dp"
android:contentDescription="@string/logo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/chat_time"
app:srcCompat="@mipmap/placeholder_head" />
<TextView
android:id="@+id/chat_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginEnd="15dp"
android:background="@drawable/solid_ff_4"
android:padding="12dp"
android:textColor="@color/color_32"
android:textSize="15sp"
app:layout_constraintEnd_toStartOf="@+id/chat_avatar"
app:layout_constraintTop_toBottomOf="@+id/chat_time" />
</androidx.constraintlayout.widget.ConstraintLayout>