You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
first time initialize the calendar, selected circle will expand to parent width and height #1128
when setTileWidth or setTileHeight, and setSelectedDate
the first time we initialize the calendar, the selected circle expands to view width and height, like oval shape,
but after a while, it returns to a normal circle.
I have tried using DayViewDecorator, and set setSelectionDrawable for custom drawable with fixed size,
but no luck.
I facing the same problem, I found that cause of the problem is onDraw() method called before onLayout(). The rect is unset in onDraw() method, So the cicle will filling rect and you see it like oval shape.After a while it back to normal circle because it relayout and set correct width and height.
In my code, I delete invalidateDecorators() called in onDateSelected().
Activity
Mor1995 commentedon Apr 27, 2022
I facing the same problem, I found that cause of the problem is
onDraw()method called beforeonLayout(). The rect is unset inonDraw()method, So the cicle will filling rect and you see it like oval shape.After a while it back to normal circle because it relayout and set correct width and height.In my code, I delete
invalidateDecorators()called inonDateSelected().It's work for me.