On a descendu les chiffres et diminué la surface de la zone cliquable
This commit is contained in:
parent
bf9719beb4
commit
388a140212
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue