File tree Expand file tree Collapse file tree 6 files changed +9
-3
lines changed
java/com/dingmouren/smaple/paletteimageview Expand file tree Collapse file tree 6 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ![ image] ( https://github.com/DingMouRen/PaletteImageView/raw/master/screenshot/p1.png ) <br ><br >
1
2
### 简介
2
3
* 可以解析图片中的主色调,默认将主色调作为控件阴影的颜色
3
4
* 可以自定义设置控件的阴影颜色
20
21
##### 阴影颜色默认是图片的主色调
21
22
22
23
![ image] ( https://github.com/DingMouRen/PaletteImageView/raw/master/screenshot/demo4.gif )
24
+ ![ image] ( https://github.com/DingMouRen/PaletteImageView/raw/master/screenshot/p2.png )
25
+ ##### 图片颜色主题解析
26
+ ![ image] ( https://github.com/DingMouRen/PaletteImageView/raw/master/screenshot/p3.png )
23
27
## 使用
24
28
25
29
```
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public ViewHolder(View itemView) {
68
68
mLinearLayout = (LinearLayout )itemView . findViewById (R .id .linear );
69
69
title = (TextView )itemView . findViewById (R .id .tv1 );
70
70
content = (TextView ) itemView .findViewById (R .id .tv2 );
71
- initListener ();
71
+ // initListener();
72
72
}
73
73
74
74
private void initListener () {
Original file line number Diff line number Diff line change 12
12
android : id =" @+id/palette"
13
13
android : layout_width =" match_parent"
14
14
android : layout_height =" wrap_content"
15
- app : palettePadding =" 0dp"
15
+ app : palettePadding =" 20dp"
16
+ app : paletteOffsetX =" 15dp"
17
+ app : paletteOffsetY =" 15dp"
16
18
/>
17
19
<LinearLayout
18
20
android : id =" @+id/linear"
19
21
android : layout_width =" match_parent"
20
22
android : layout_height =" wrap_content"
21
23
android : orientation =" vertical"
22
- android : visibility =" visible "
24
+ android : visibility =" gone "
23
25
>
24
26
<TextView
25
27
android : id =" @+id/tv1"
You can’t perform that action at this time.
0 commit comments