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.
74 lines
2.2 KiB
XML
74 lines
2.2 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:id="@+id/layout"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/conversationView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:scrollbars="vertical"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/listLoadingProgressBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:layout_weight="1"
|
|
android:indeterminate="true"
|
|
android:visibility="gone"/>
|
|
|
|
<TextView
|
|
android:id="@+id/emptyView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:padding="@dimen/margin_large"
|
|
android:textSize="@dimen/text_size_large"
|
|
android:text="@string/no_private_messages"
|
|
android:visibility="gone"/>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="@color/horizontal_border"/>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/button_bar_background"
|
|
android:paddingLeft="@dimen/margin_medium"
|
|
android:paddingStart="@dimen/margin_medium">
|
|
|
|
<EditText
|
|
android:id="@+id/contentView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/private_message_hint"
|
|
android:layout_weight="1"
|
|
android:inputType="text|textMultiLine|textCapSentences"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/sendButton"
|
|
android:layout_width="38dp"
|
|
android:layout_height="38dp"
|
|
android:layout_gravity="bottom"
|
|
android:src="@drawable/social_send_now"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:scaleType="fitEnd"
|
|
android:contentDescription="@string/send"
|
|
android:paddingRight="@dimen/margin_medium"
|
|
android:paddingEnd="@dimen/margin_medium"
|
|
android:paddingBottom="@dimen/margin_medium"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |