diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt index 4d738dc75..3b32c886e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/EventsAdapter.kt @@ -23,6 +23,7 @@ class EventsAdapter(val activity: SimpleActivity, val mItems: List, val i val markedItems = HashSet() fun toggleItemSelection(itemView: View, select: Boolean, pos: Int = -1) { + itemView.event_item_frame.isSelected = select if (pos == -1) return diff --git a/app/src/main/res/drawable-v21/selector.xml b/app/src/main/res/drawable-v21/selector.xml new file mode 100644 index 000000000..a24cfe2b1 --- /dev/null +++ b/app/src/main/res/drawable-v21/selector.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/button_pressed.xml b/app/src/main/res/drawable/button_pressed.xml index 784a2cccd..e5cc99ba3 100644 --- a/app/src/main/res/drawable/button_pressed.xml +++ b/app/src/main/res/drawable/button_pressed.xml @@ -2,5 +2,5 @@ + android:color="@color/mediumGrey"/> diff --git a/app/src/main/res/drawable/selector.xml b/app/src/main/res/drawable/selector.xml new file mode 100644 index 000000000..c7e60e3f0 --- /dev/null +++ b/app/src/main/res/drawable/selector.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/layout/event_item.xml b/app/src/main/res/layout/event_item.xml index 0ba6005b5..5e8afff53 100644 --- a/app/src/main/res/layout/event_item.xml +++ b/app/src/main/res/layout/event_item.xml @@ -1,48 +1,55 @@ - + android:background="?attr/selectableItemBackground" + android:foreground="@drawable/selector"> - + android:paddingBottom="@dimen/event_padding" + android:paddingTop="@dimen/event_padding"> - + - + - + - + + + + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 9c039cfaa..a996c3ba4 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -4,7 +4,8 @@ #ffe27725 @color/colorPrimary - #11000000 + #08000000 + #44888888 #18000000 #44cccccc