You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to modify the color picker so that it continuously outputs a color value as it is changed? Similar to the function onProgressChanged that a seekBar uses.
Of course you can. Just create an interface with one method that returns a ColorPicker object. Implement that same interface in your ColorActivity. Than create a method in the ColorPicker class which will let you set the listener.
Would be great if an onChange listener could be implemented directly. There doesn't appear to be a direct way to get this to work on Xamarin Android by just using the NuGet package.
Activity
jeroenbeuz commentedon Nov 22, 2017
Of course you can. Just create an interface with one method that returns a ColorPicker object. Implement that same interface in your ColorActivity. Than create a method in the ColorPicker class which will let you set the listener.
This is how I did it with the MultiColorPicker:
MultiColorActivity
onCreate
Somewhere
MultiColorPicker.java
MultiColor
BennyKirschner commentedon Jan 28, 2019
Would be great if an onChange listener could be implemented directly. There doesn't appear to be a direct way to get this to work on Xamarin Android by just using the NuGet package.
BennyKirschner commentedon Jan 30, 2019
By adding a choreographer I was able to solve this - just get the color every frame and safe it's value somewhere as a workaround.