We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
int[] mColors = getResources().getIntArray(R.array.default_rainbow); ColorPickerDialog dialog = ColorPickerDialog.newInstance(R.string.color_picker_default_title, mColors, mSelectedColor, 5, // Number of columns ColorPickerDialog.SIZE_SMALL, true // True or False to enable or disable the serpentine effect //0, // stroke width //Color.BLACK // stroke color ); dialog.setOnColorSelectedListener(new ColorPickerSwatch.OnColorSelectedListener() { @Override public void onColorSelected(int color) { mSelectedColor = color; textView.setTextColor(mSelectedColor); Intent intent = new Intent(MainActivity.this, SettingsActivity.class); startActivity(intent); } });
The text was updated successfully, but these errors were encountered:
There is no index returned, the color value is returned as callback via onColorSelected.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: