本文介绍了如何使用devmil-Android的颜色选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用一些颜色选择器中我的应用程序,所以我搜索谷歌和发现的的,但我不明白如何在我的应用程序中使用它。有人可以给我的使用情况的简单例子或暗示一个很好的选择?
I need to use some color picker in my application, so I searched google and found devmil-android-color-picker, but I don't understand how to use it in my application. Can someone give me a short example of its usage or suggest a good alternative?
推荐答案
我来回答自己=)我跟笔者连他帮我正确的答案:
简单的例子:它为我的作品:
I'll answer myself =) I connected with author and he helped me with right answer:Simple example: It works for me:
ColorSelectorDialog dlg = new ColorSelectorDialog(this,
new ColorSelectorDialog.OnColorChangedListener() {
public void colorChanged(int color) {
System.out.println("The new color is: " + color);
}
}, colorCurrent);
dlg.setTitle("Select new color");
dlg.show();
这篇关于如何使用devmil-Android的颜色选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!