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

Migrate to AndroidX #54

Closed yvolk closed 4 years ago

yvolk commented 4 years ago

As I understand https://developer.android.com/guide/topics/ui/settings.html we should use AndroidX libraries for new development.

@martin-stone Having your Color Picker as an internal project ( see https://github.com/martin-stone/hsv-alpha-color-picker-android/issues/51#issuecomment-524622055 ) I realized that before starting to write my new Custom preference I must migrate your component first :-)

And I did this. One day - and it works! Please feel free to integrate these changes into your repository, see this commit with full code of Preferences migration to AndroidX: https://github.com/andstatus/todoagenda/commit/27cce2c0a0fcddfe22ce71efd86b88d04020c7b2

@martin-stone Thank you once again for the beautiful Color Picker.

martin-stone commented 4 years ago

You can use this library with AndroidX without any changes by setting android.enableJetifier=true in your gradle.properties. At some point I'll migrate it fully, but right now the library supports apps using AndroidX and as well as those that have not yet migrated.