Skip to content

Commit 02c9edb

Browse files
committed
commit
1 parent 48fdc2e commit 02c9edb

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,28 @@
2424
![image](https://github.com/DingMouRen/PaletteImageView/raw/master/screenshot/p2.png)
2525
##### 3.图片颜色主题解析
2626
![image](https://github.com/DingMouRen/PaletteImageView/raw/master/screenshot/p3.png)
27-
## 使用
27+
### 使用
2828

2929
```
3030
<com.dingmouren.paletteimageview.PaletteImageView
31-
android:id="@+id/palette2"
32-
android:layout_width="180dp"
33-
android:layout_height="180dp"
34-
app:cornerRadis="50dp"
35-
app:paletteSrc="@mipmap/yellow"
36-
/>
31+
android:id="@+id/palette"
32+
android:layout_width="match_parent"
33+
android:layout_height="wrap_content"
34+
app:palettePadding="20dp"
35+
app:paletteOffsetX="15dp"
36+
app:paletteOffsetY="15dp"
37+
/>
3738
```
39+
### xml属性
3840

39-
欢迎大家提Issues.
41+
xml属性 | 描述
42+
---|---
43+
app:palettePadding | 表示阴影显示最大空间距离。值为0,没有阴影,大于0,才有阴影。
44+
app:paletteOffsetX | 表示阴影在x方向上的偏移量
45+
app:paletteOffsetY | 表示阴影在y方向上的偏移量
46+
app:paletteSrc | 表示图片资源
47+
app:paletteRadius | 表示圆角半径
48+
app:paletteShadowRadius | 表示阴影半径
4049

4150
## License
4251
```

0 commit comments

Comments
 (0)