mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-16 19:50:40 +01:00
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) {
|
private fun setupView(view: View, message: Message) {
|
||||||
view.apply {
|
view.apply {
|
||||||
|
thread_message_holder.isSelected = selectedKeys.contains(message.id)
|
||||||
thread_message_body.text = message.body
|
thread_message_body.text = message.body
|
||||||
thread_message_body.beVisibleIf(message.body.isNotEmpty())
|
thread_message_body.beVisibleIf(message.body.isNotEmpty())
|
||||||
|
|
||||||
|
@ -72,7 +72,8 @@
|
|||||||
android:layout_below="@+id/thread_add_contacts"
|
android:layout_below="@+id/thread_add_contacts"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:overScrollMode="ifContentScrolls"
|
android:overScrollMode="ifContentScrolls"
|
||||||
android:padding="@dimen/activity_margin"
|
android:paddingTop="@dimen/activity_margin"
|
||||||
|
android:paddingBottom="@dimen/activity_margin"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
|
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
|
||||||
app:stackFromEnd="true" />
|
app:stackFromEnd="true" />
|
||||||
|
@ -6,7 +6,10 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/medium_margin"
|
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
|
<RelativeLayout
|
||||||
android:id="@+id/thread_message_wrapper"
|
android:id="@+id/thread_message_wrapper"
|
||||||
|
@ -6,7 +6,10 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/medium_margin"
|
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
|
<RelativeLayout
|
||||||
android:id="@+id/thread_message_wrapper"
|
android:id="@+id/thread_message_wrapper"
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
|
android:paddingStart="@dimen/activity_margin"
|
||||||
|
android:paddingEnd="@dimen/activity_margin"
|
||||||
android:text="@string/message_not_sent"
|
android:text="@string/message_not_sent"
|
||||||
android:textColor="@color/theme_dark_red_primary_color"
|
android:textColor="@color/theme_dark_red_primary_color"
|
||||||
android:textSize="@dimen/normal_text_size" />
|
android:textSize="@dimen/normal_text_size" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user