mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
properly notify the view adapter of dataset changes in order to avoid invalidating the entire dataset when not absolutely necessary. This change also shows unread messages in a different color, so users do not fail to notice delayed messages.
55 lines
1.7 KiB
XML
55 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/margin_medium"
|
|
android:paddingStart="@dimen/margin_medium"
|
|
android:paddingTop="@dimen/margin_small"
|
|
android:paddingBottom="@dimen/margin_small">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/msgLayout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right|end"
|
|
android:background="@drawable/msg_out"
|
|
android:paddingLeft="7dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingRight="17dp"
|
|
android:paddingBottom="5dp">
|
|
|
|
<TextView
|
|
android:id="@+id/msgBody"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textIsSelectable="true"
|
|
android:minWidth="80dp"
|
|
tools:text="This is a long long long message that spans over several lines.\n\nIt ends here."/>
|
|
|
|
<TextView
|
|
android:id="@+id/msgTime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/msgBody"
|
|
android:layout_toLeftOf="@+id/msgStatus"
|
|
android:textSize="10sp"
|
|
android:textColor="@color/private_message_date"
|
|
android:singleLine="true"
|
|
tools:text="Dec 24, 13:37"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/msgStatus"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@+id/msgTime"
|
|
android:layout_alignRight="@+id/msgBody"
|
|
android:layout_alignEnd="@+id/msgBody"
|
|
android:layout_marginLeft="3dp"
|
|
tools:src="@drawable/message_delivered"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout> |