updating the UI at clipboard management activity
This commit is contained in:
parent
02bb8d6d99
commit
a9673c6fa6
|
@ -65,7 +65,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:79c7cde543'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:c09f8dfda1'
|
||||||
implementation 'androidx.emoji2:emoji2-bundled:1.2.0'
|
implementation 'androidx.emoji2:emoji2-bundled:1.2.0'
|
||||||
|
|
||||||
kapt 'androidx.room:room-compiler:2.5.1'
|
kapt 'androidx.room:room-compiler:2.5.1'
|
||||||
|
|
|
@ -11,6 +11,7 @@ import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
|
||||||
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
|
||||||
import com.simplemobiletools.commons.extensions.applyColorFilter
|
import com.simplemobiletools.commons.extensions.applyColorFilter
|
||||||
import com.simplemobiletools.commons.extensions.beVisibleIf
|
import com.simplemobiletools.commons.extensions.beVisibleIf
|
||||||
|
import com.simplemobiletools.commons.extensions.setupViewBackground
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
import com.simplemobiletools.commons.interfaces.ItemMoveCallback
|
import com.simplemobiletools.commons.interfaces.ItemMoveCallback
|
||||||
import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
|
import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
|
||||||
|
@ -154,6 +155,7 @@ class ClipsActivityAdapter(
|
||||||
|
|
||||||
val isSelected = selectedKeys.contains(clip.id!!.toInt())
|
val isSelected = selectedKeys.contains(clip.id!!.toInt())
|
||||||
view.apply {
|
view.apply {
|
||||||
|
setupViewBackground(activity)
|
||||||
clip_value.text = clip.value
|
clip_value.text = clip.value
|
||||||
clip_value.setTextColor(textColor)
|
clip_value.setTextColor(textColor)
|
||||||
clip_drag_handle.applyColorFilter(textColor)
|
clip_drag_handle.applyColorFilter(textColor)
|
||||||
|
|
|
@ -4,10 +4,7 @@
|
||||||
android:id="@+id/clip_holder"
|
android:id="@+id/clip_holder"
|
||||||
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:layout_marginBottom="@dimen/tiny_margin"
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:foreground="@drawable/selector"
|
|
||||||
android:paddingEnd="@dimen/normal_margin">
|
android:paddingEnd="@dimen/normal_margin">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
|
|
Loading…
Reference in New Issue