On a descendu les chiffres et diminué la surface de la zone cliquable

This commit is contained in:
KBenMessaoud 2023-11-28 14:32:43 +01:00
parent bf9719beb4
commit 388a140212
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(con
dayVerticalOffsets.put(day.indexOnMonthView, dayVerticalOffsets[day.indexOnMonthView] + weekDaysLetterHeight)
val verticalOffset = dayVerticalOffsets[day.indexOnMonthView]
val xPos = x * dayWidth + horizontalOffset
val yPos = y * dayHeight + verticalOffset
val yPos = y * dayHeight + verticalOffset*1.055f
val xPosCenter = xPos + dayWidth / 2
val dayNumber = day.value.toString()

View File

@ -69,7 +69,7 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
val childLeft = x * dayWidth + horizontalOffset - child.translationX
val childTop = y * dayHeight + weekDaysLetterHeight - child.translationY
val childWidth = child.measuredWidth
val childHeight = child.measuredHeight/2
val childHeight = child.measuredHeight/1.05F
val childRight = childLeft + childWidth
val childBottom = childTop + childHeight