从图像获取主题样式 ColorArt
- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/MichaelEvans/ColorArt
- 官方下载: https://github.com/MichaelEvans/ColorArt
软件介绍
ColorArt 是一个Android开源库,可方便地从图像中自动获取主题样式的代码库。这个项目最初的版本出自流行的 Panic 的 OS X library。
这里记录下Android版的ColorArt的使用方法:
向build.gradle文件增加依赖库ColorArt:
compile 'org.michaelevans.colorart:library:0.0.1'
使用API:
// get a bitmap and analyze it Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.album); ColorArt colorArt = new ColorArt(bitmap); // get the colors colorArt.getBackgroundColor() colorArt.getPrimaryColor() colorArt.getSecondaryColor() colorArt.getDetailColor() FadingImageView
FadingImageView类:
mFadingImageView.setBackgroundColor(colorArt.getBackgroundColor(), FadingImageView.FadeSide.LEFT); //This will set the fading edge on the left side, with that background color. You can also enable/disable the fade with: mImageView.setFadeEnabled(true/false);
示例测试截图:
互联网+秋叶课堂:我的网课创业
秋叶 / 北京:机械工业出版社 / 2016-3-1 / 39.0
在线教育被很多人视为 “互联网+”创业热潮中的下一个风口,越来越多的老师和创业者选择在线教育创业。本书作者秋叶老师2013年双11正式带一帮小伙伴开始在线教育创业,在短短两年内“从0到1”,累计做到了超500万元的销售业绩,成为国内Office领域在线教育运营最成功的团队之一。在这本书中秋叶老师结合自己的实战经历,向各位完整剖析了两年创业的真实复盘思考,是一本值得在线教育创业同行入手的必读书。 ......一起来看看 《互联网+秋叶课堂:我的网课创业》 这本书的介绍吧!
