android - 如何为 HoloColorPicker 不透明度栏设置默认颜色?

标签 android android-library

我在我的应用程序中使用 HoloColorPicker 库。 我想在 onCreate 期间更改默认的不透明栏值。 不知道在哪里可以找到它的代码。

enter image description here

最佳答案

按照说明检查即可here.

picker.setOldCenterColor(picker.getColor());

或者如果您通过 SharedPreference 将您的颜色保存为字符串..那么就像这样:

picker.setOldCenterColor(Color.parse(your_saved_color_string);

关于android - 如何为 HoloColorPicker 不透明度栏设置默认颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23446588/

相关文章:

android - 如何仅在 Room 实体为空时更新它的列?

android - Android 上的 Cordova FCM

java - 如何将 ArrayList<string> 中的所有图像设置为 imageViews

android - 使用Service进行操作——异步任务

android - Gradle build - 无法确定任务 ':myLibrary:transformClassesAndResourcesWithProguardForRelease' 的依赖关系

android - 集成使用 Kotlin Coroutines 依赖问题构建的库模块

javascript - 来自与 Cordova 一起使用的基于 Android HTML5 的应用程序的流行相机或视频捕获选项

java - Android Studio 库不工作

android - 我需要增加库模块的版本代码吗?

android - 尽管没有错误,但无法在 Eclipse 中运行 Android 项目