jaredrummler / ColorPicker

A highly customizable color picker for Android
Apache License 2.0
793 stars 172 forks source link

Added styling option to ColorPickerDialog #76

Open martawoldanska opened 5 years ago

martawoldanska commented 5 years ago

This MR fixes issues #38 and #73

Abish-R commented 5 years ago

How to get this change in library to apply custom style to the ColorPickerDialog.

Abish-R commented 5 years ago

How to get this change in library to apply custom style to the ColorPickerDialog.

martawoldanska commented 5 years ago

@Abish-R When creating your ColorPickerDialog use setDialogStyle method, for example: val colorPicker = ColorPickerDialog.newBuilder() .setDialogType(ColorPickerDialog.TYPE_CUSTOM) .setAllowPresets(false) .setColor(color) .setDialogStyle(R.style.ColorPickerDialogStyle) // your own style .create()

Abish-R commented 5 years ago

@martawoldanska setDialogStyle is not available in the library 1.1.0. How to achieve this using the library

martawoldanska commented 5 years ago

@Abish-R It's not yet merged, so you can't do it using the library. You can use our own release on jitpack: https://jitpack.io/#PolideaInternal/ColorPicker

Abish-R commented 5 years ago

@martawoldanska, thanks for your quick responses. I am not well aware of publishing projects in jitpack. I downloaded the source code and added as project dependency. Waiting for your new publishing to achieve the same result using the library. Thanks a lot.