relish-wang/ColorPicker

没有点击应用颜色的事件监听么老哥?

Closed this issue · 1 comments

如题。。。感觉有点尴尬

你说的是注册在ColorPickerDialog上的监听“点击应用颜色”事件的监听器吧?
ColorPickerDialog#Builder#setOnColorPickedListener();
参看MainActivity.java第50~61行代码。

new ColorPickerDialog.Builder(MainActivity.this, mColor)
        .setHexValueEnabled(mHexValueEnable)//是否显示颜色值
        .setOnColorPickedListener(new ColorPickerDialog.OnColorPickedListener() {
            @Override
            public void onColorPicked(int color) {
                mColor = color;
                mViewColor.setBackgroundColor(mColor);
            }
        })//设置颜色改变监听器
        .build()
        .show();//展示