File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,21 @@ xml属性 | 描述
46
46
app: paletteSrc | 表示图片资源
47
47
app: paletteRadius | 表示圆角半径
48
48
app: paletteShadowRadius | 表示阴影半径
49
-
49
+ ### 公共的方法
50
+ 方法 | 描述
51
+ ---|---
52
+ public void setShadowColor(int color) | 表示自定义设置控件阴影的颜色
53
+ public void setBitmap(Bitmap bitmap) | 表示设置控件位图
54
+ public void setPaletteRadius(int raius) | 表示设置控件圆角半径
55
+ public void setPaletteShadowOffset(int offsetX, int offsetY) | 表示设置阴影在控件阴影在x方向 或 y方向上的偏移量
56
+ public void setPaletteShadowRadius(int radius) | 表示设置控件阴影半径
57
+ public void setOnParseColorListener(OnParseColorListener listener) | 设置控件解析图片颜色的监听器
58
+ public int[ ] getVibrantColor() | 表示获取Vibrant主题的颜色数组;假设颜色数组为arry,arry[ 0] 是推荐标题使用的颜色,arry[ 1] 是推荐正文使用的颜色,arry[ 2] 是推荐背景使用的颜色。颜色只是用于推荐,可以自行选择
59
+ public int[ ] getDarkVibrantColor()| 表示获取DarkVibrant主题的颜色数组,数组元素含义同上
60
+ public int[ ] getLightVibrantColor()| 表示获取LightVibrant主题的颜色数组,数组元素含义同上
61
+ public int[ ] getMutedColor()| 表示获取Muted主题的颜色数组,数组元素含义同上
62
+ public int[ ] getDarkMutedColor()| 表示获取DarkMuted主题的颜色数组,数组元素含义同上
63
+ public int[ ] getLightMutedColor()| 表示获取LightMuted主题的颜色数组,数组元素含义同上
50
64
## License
51
65
```
52
66
Copyright (C) 2017 WeyYe
You can’t perform that action at this time.
0 commit comments