Skip to content

Commit 85df10a

Browse files
committed
commit
1 parent 02c9edb commit 85df10a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,21 @@ xml属性 | 描述
4646
app:paletteSrc | 表示图片资源
4747
app:paletteRadius | 表示圆角半径
4848
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主题的颜色数组,数组元素含义同上
5064
## License
5165
```
5266
Copyright (C) 2017 WeyYe

0 commit comments

Comments
 (0)