highlight selected messages at the Conversation screen
This commit is contained in:
parent
a40438a08c
commit
854e125079
|
@ -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())
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue