QuadFlask / colorpicker

🍭color picker for android
1.22k stars 219 forks source link

Error not changing color #133

Open Ninjacoderhsi opened 2 years ago

Ninjacoderhsi commented 2 years ago

Screenshot_20220616-180459_Color Picker

.with(MainActivity.this)
.setTitle("Color")
.initialColor(getColor(R.color.colorPrimary))
.wheelType(ColorPickerView.WHEEL_TYPE.FLOWER)
.density(12)
.setOnColorSelectedListener(new OnColorSelectedListener() {
            @Override
            public void onColorSelected(int selectedColor) {

            }
})
           .setPositiveButton("yes", new ColorPickerClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int selectedColor, Integer[] allColors) {

                    String rgs = String.valueOf(selectedColor);

        Toast.makeText(getApplicationContext(), rgs, Toast.LENGTH_SHORT).show();

            }
})
.setNegativeButton("no", new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int which) {

            }
})

.build()
.show();

Hi I want to display the color code as #fff but it just returns a series of numbers can you help me

TheRandomCrafter83 commented 2 years ago

those numbers are actually the integer value of the color. you will need to convert the number to hex values

Arashvscode commented 2 years ago

those numbers are actually the integer value of the color. you will need to convert the number to hex values

How to set theme drak bro?

TheRandomCrafter83 commented 2 years ago

unless you override it, the theme is set according to your device

Arashvscode commented 2 years ago

للل

unless you override it, the theme is set according to your device

Vector I want to manually black out the theme