updating the UI at clipboard management activity

This commit is contained in:
tibbi 2023-06-13 10:39:17 +02:00
parent 02bb8d6d99
commit a9673c6fa6
3 changed files with 4 additions and 5 deletions

View File

@ -65,7 +65,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:79c7cde543'
implementation 'com.github.SimpleMobileTools:Simple-Commons:c09f8dfda1'
implementation 'androidx.emoji2:emoji2-bundled:1.2.0'
kapt 'androidx.room:room-compiler:2.5.1'

View File

@ -11,6 +11,7 @@ import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
import com.simplemobiletools.commons.extensions.applyColorFilter
import com.simplemobiletools.commons.extensions.beVisibleIf
import com.simplemobiletools.commons.extensions.setupViewBackground
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
import com.simplemobiletools.commons.interfaces.ItemMoveCallback
import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
@ -154,6 +155,7 @@ class ClipsActivityAdapter(
val isSelected = selectedKeys.contains(clip.id!!.toInt())
view.apply {
setupViewBackground(activity)
clip_value.text = clip.value
clip_value.setTextColor(textColor)
clip_drag_handle.applyColorFilter(textColor)

View File

@ -4,10 +4,7 @@
android:id="@+id/clip_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:foreground="@drawable/selector"
android:layout_marginBottom="@dimen/tiny_margin"
android:paddingEnd="@dimen/normal_margin">
<com.simplemobiletools.commons.views.MyTextView