Material-calendarview: Ultra slow performances with 5 decorators

Created on 24 Feb 2016  路  10Comments  路  Source: prolificinteractive/material-calendarview

I've added 5 decorators, and the performances are incredibly terrible (I have a Nexus 5X).
Every time I call calendar.invalidateDecorators(); it takes about 3 seconds to finish.
Could this at least be moved in some background task? because it makes even sliding to the new month really slow.

Thanks!

Performance Issue

Most helpful comment

+1 Is there any good way to optimize this performance problem?

All 10 comments

+1

May be related to #8

  • 1 I'm using 8 different decorators and skipping lots of frames

+1, I'm also using 7 spans and it takes about 5 seconds on my Nexus 6P to show all the DotSpans...

There's another bug which the source is the same as this, when clicking a date to add a decorator, the fading out animation of the previous selection doens't happen and it looses the smoothness.

@tizianh I'm trying to add 3 DotSpans aligned in the same date, how did you do it?

@joaosardinha I have 3 different classes which all extend DayViewDecorator and in there I create MyCustomSpan which implements LineBackgroundSpan and in there I draw my circle in the right corner and with the right padding to place 3 next to each other. So I just call MyCustomSpan with a different padding each time (-20, 0, 20 for example).

Is there any update to that issue yet?

+1

+1 Is there any good way to optimize this performance problem?

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  4Comments

TokyoAndroid picture TokyoAndroid  路  4Comments

Maragues picture Maragues  路  5Comments

SamBob01 picture SamBob01  路  3Comments

Xirate picture Xirate  路  5Comments