in ColorSlider.OnColorSelectedListener should not be necessary to override invoke(int ,int) method, especially with arguments. with a simple fix, you could not use the following workaround 