martin-stone / hsv-alpha-color-picker-android

A color picker and a color preference for use in Android applications.
Apache License 2.0
290 stars 60 forks source link

Still a long delay when opening preference on Nexus 7 for the first time #38

Closed aloz77 closed 6 years ago

aloz77 commented 6 years ago

28 is living again in the library 2.2.0

martin-stone commented 6 years ago

OK. I'll look into it.

james-s-w-clark commented 6 years ago

Getting ~150 frames skipped when opening the color-picker for the first time.

martin-stone commented 6 years ago

The library generates the Hue/Sat bitmap the first time the picker is shown, matching the size of the view. The size should probably be limited to 256 square, and maybe baked-in as a resource instead of generated.

I'd be happy to consider a PR that does that. Otherwise it'll have to wait until I have some free time.

martin-stone commented 6 years ago

I've released version 2.3, which limits the bitmap size and is much faster.