mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
readding the background clickable views in monthly day view, just without ripple
This commit is contained in:
@@ -70,10 +70,6 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun addClickableBackgrounds() {
|
private fun addClickableBackgrounds() {
|
||||||
if (isMonthDayView) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
removeAllViews()
|
removeAllViews()
|
||||||
monthView = inflater.inflate(R.layout.month_view, this).month_view
|
monthView = inflater.inflate(R.layout.month_view, this).month_view
|
||||||
wereViewsAdded = true
|
wereViewsAdded = true
|
||||||
@@ -93,6 +89,10 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
|
|||||||
|
|
||||||
private fun addViewBackground(xPos: Float, yPos: Float, day: DayMonthly) {
|
private fun addViewBackground(xPos: Float, yPos: Float, day: DayMonthly) {
|
||||||
inflater.inflate(R.layout.month_view_background, this, false).apply {
|
inflater.inflate(R.layout.month_view_background, this, false).apply {
|
||||||
|
if (isMonthDayView) {
|
||||||
|
background = null
|
||||||
|
}
|
||||||
|
|
||||||
layoutParams.width = dayWidth.toInt()
|
layoutParams.width = dayWidth.toInt()
|
||||||
layoutParams.height = dayHeight.toInt()
|
layoutParams.height = dayHeight.toInt()
|
||||||
x = xPos
|
x = xPos
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<View
|
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:id="@+id/month_view_background"
|
android:id="@+id/month_view_background"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
Reference in New Issue
Block a user