Updated the fake message in appearance

This commit is contained in:
ThomasSession 2024-09-03 13:57:23 +10:00 committed by fanchao
parent 97db1fe4e6
commit 2704bc717d
2 changed files with 37 additions and 14 deletions

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<size android:height="22dp" android:width="3dp"/>
<solid android:color="?colorAccent"/>
</shape>

View File

@ -209,15 +209,44 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:textSize="12sp"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?message_received_text_color"
android:text="@string/appearancePreview1"
android:gravity="center"
android:drawablePadding="12dp"
app:drawableLeftCompat="@drawable/quote_accent_line" />
android:layout_height="wrap_content" >
<View
android:id="@+id/quote_line"
android:layout_width="3dp"
android:layout_height="0dp"
android:background="?colorAccent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<TextView
android:id="@+id/quote_sender"
android:textSize="12sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?message_received_text_color"
android:text="@string/you"
android:textStyle="bold"
android:gravity="center"
android:layout_marginStart="@dimen/small_spacing"
app:layout_constraintStart_toEndOf="@+id/quote_line"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@+id/quote_msg"/>
<TextView
android:id="@+id/quote_msg"
android:textSize="12sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?message_received_text_color"
android:text="@string/appearancePreview1"
android:gravity="center"
android:layout_marginStart="@dimen/small_spacing"
app:layout_constraintStart_toEndOf="@+id/quote_line"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/quote_sender"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:layout_marginTop="4dp"
android:text="@string/appearancePreview2"