highlight selected messages at the Conversation screen

This commit is contained in:
tibbi 2020-04-13 10:04:06 +02:00
parent a40438a08c
commit 854e125079
5 changed files with 13 additions and 3 deletions

View File

@ -179,6 +179,7 @@ class ThreadAdapter(
private fun setupView(view: View, message: Message) {
view.apply {
thread_message_holder.isSelected = selectedKeys.contains(message.id)
thread_message_body.text = message.body
thread_message_body.beVisibleIf(message.body.isNotEmpty())

View File

@ -72,7 +72,8 @@
android:layout_below="@+id/thread_add_contacts"
android:clipToPadding="false"
android:overScrollMode="ifContentScrolls"
android:padding="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"
android:paddingBottom="@dimen/activity_margin"
android:scrollbars="none"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
app:stackFromEnd="true" />

View File

@ -6,7 +6,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/medium_margin"
android:layout_marginBottom="@dimen/medium_margin">
android:layout_marginBottom="@dimen/medium_margin"
android:foreground="@drawable/selector"
android:paddingStart="@dimen/activity_margin"
android:paddingEnd="@dimen/activity_margin">
<RelativeLayout
android:id="@+id/thread_message_wrapper"

View File

@ -6,7 +6,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/medium_margin"
android:layout_marginBottom="@dimen/medium_margin">
android:layout_marginBottom="@dimen/medium_margin"
android:foreground="@drawable/selector"
android:paddingStart="@dimen/activity_margin"
android:paddingEnd="@dimen/activity_margin">
<RelativeLayout
android:id="@+id/thread_message_wrapper"

View File

@ -4,6 +4,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:paddingStart="@dimen/activity_margin"
android:paddingEnd="@dimen/activity_margin"
android:text="@string/message_not_sent"
android:textColor="@color/theme_dark_red_primary_color"
android:textSize="@dimen/normal_text_size" />