Closed TadyTheFish closed 5 years ago
The colorPickerView
must be declared and assigned before use.
If you use the butterknife
library, just do this:
or, you can use the findViewById
:
ColorPickerView colorPickerView = findViewById(R.id. colorPickerView);
Thank you so much! It kinda worked but then the app would crash! The XML file was the problem. I had to change from <top.defaults.view.ColorPickerView to <top.defaults.colorpicker.ColorPickerView because <top.defaults.view.ColorPickerView wuld always return null and it didn't have any preview in the design. It works now! Thank you!
I'm a total beginner in AS. I'm trying to use your library for my app and can't get it working.
colorPickerView.subscribe((color, fromUser) -> { // use the color }); colorPickerView is colored red (cannot resolve symbol) what did I forgot?
Thank you!