Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error not changing color #133

Open
Ninjacoderhsi opened this issue Jun 16, 2022 · 4 comments
Open

Error not changing color #133

Ninjacoderhsi opened this issue Jun 16, 2022 · 4 comments

Comments

@Ninjacoderhsi
Copy link

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
Copy link

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

@Arashvscode
Copy link

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
Copy link

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

@Arashvscode
Copy link

للل

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

Vector I want to manually black out the theme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants