.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
Hi I want to display the color code as #fff but it just returns a series of numbers can you help me