use nicer effects at long pressing conversations

This commit is contained in:
tibbi 2023-06-11 21:42:55 +02:00
parent 32f6307464
commit e8d021a662
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:c31d0fda56' implementation 'com.github.SimpleMobileTools:Simple-Commons:d3fec80827'
implementation 'org.greenrobot:eventbus:3.3.1' implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61' implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
implementation 'com.github.tibbi:android-smsmms:33fcaf94d9' implementation 'com.github.tibbi:android-smsmms:33fcaf94d9'

View File

@ -335,6 +335,7 @@ class ConversationsAdapter(
private fun setupView(view: View, conversation: Conversation) { private fun setupView(view: View, conversation: Conversation) {
view.apply { view.apply {
setupViewBackground(activity)
val smsDraft = drafts[conversation.threadId] val smsDraft = drafts[conversation.threadId]
draft_indicator.beVisibleIf(smsDraft != null) draft_indicator.beVisibleIf(smsDraft != null)
draft_indicator.setTextColor(properPrimaryColor) draft_indicator.setTextColor(properPrimaryColor)

View File

@ -4,10 +4,9 @@
android:id="@+id/conversation_frame" android:id="@+id/conversation_frame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground" android:background="@drawable/selector"
android:clickable="true" android:clickable="true"
android:focusable="true" android:focusable="true">
android:foreground="@drawable/selector">
<RelativeLayout <RelativeLayout
android:id="@+id/conversation_holder" android:id="@+id/conversation_holder"