Skip to content

Commit a9673c6

Browse files
committed
updating the UI at clipboard management activity
1 parent 02bb8d6 commit a9673c6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ android {
6565
}
6666

6767
dependencies {
68-
implementation 'com.github.SimpleMobileTools:Simple-Commons:79c7cde543'
68+
implementation 'com.github.SimpleMobileTools:Simple-Commons:c09f8dfda1'
6969
implementation 'androidx.emoji2:emoji2-bundled:1.2.0'
7070

7171
kapt 'androidx.room:room-compiler:2.5.1'

app/src/main/kotlin/com/simplemobiletools/keyboard/adapters/ClipsActivityAdapter.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
1111
import com.simplemobiletools.commons.dialogs.ConfirmationDialog
1212
import com.simplemobiletools.commons.extensions.applyColorFilter
1313
import com.simplemobiletools.commons.extensions.beVisibleIf
14+
import com.simplemobiletools.commons.extensions.setupViewBackground
1415
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
1516
import com.simplemobiletools.commons.interfaces.ItemMoveCallback
1617
import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
@@ -154,6 +155,7 @@ class ClipsActivityAdapter(
154155

155156
val isSelected = selectedKeys.contains(clip.id!!.toInt())
156157
view.apply {
158+
setupViewBackground(activity)
157159
clip_value.text = clip.value
158160
clip_value.setTextColor(textColor)
159161
clip_drag_handle.applyColorFilter(textColor)

app/src/main/res/layout/item_clip_in_activity.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
android:id="@+id/clip_holder"
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
7-
android:background="?attr/selectableItemBackground"
8-
android:clickable="true"
9-
android:focusable="true"
10-
android:foreground="@drawable/selector"
7+
android:layout_marginBottom="@dimen/tiny_margin"
118
android:paddingEnd="@dimen/normal_margin">
129

1310
<com.simplemobiletools.commons.views.MyTextView

0 commit comments

Comments
 (0)