ColorActivity.java 文件源码

java
阅读 17 收藏 0 点赞 0 评论 0

项目:Tapad 作者:
@Override
public void onColorSelection(@NonNull ColorChooserDialog dialog, @ColorInt int colorInt) {
    if (ArrayUtils.indexOf(itemColor.getColorButtonRecents(), colorInt) >= 0) {
        // the value exists, show toast
        Toast.makeText(activity, R.string.settings_color_dialog_duplicate, Toast.LENGTH_SHORT).show();
    } else if (itemColor.getColorButton() == colorInt) {
        // the value is same to current color
        Toast.makeText(activity, R.string.settings_color_dialog_duplicate_current, Toast.LENGTH_SHORT).show();
    } else {
        insertNewColor(colorInt);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号