Skip to content

Commit 35b25a2

Browse files
committed
commit 演示图片
1 parent 351d71c commit 35b25a2

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* <h3>工作原理</h3>
44
* 首先它需要一个目标View或者它的id,我们通过findViewById来得到这个View,计算它在屏幕上的区域targetRect,通过这个区域,开始绘制一个覆盖整个Activity的遮罩,可以定义遮罩的颜色和透明度,然而目标View被绘制成透明从而实现高亮的效果。接下来是在相对于这个targetRect的区域绘制一些图片或者文字。我们把这样一张图片或者文字抽象成一个Component接口,设置文字或者图片,所有的图片文字都是相对于targetRect来定义的。可以设定额外的x,y偏移量,可以对遮罩系统设置可见状态的发生变化时的监听回调,可以对遮罩系统设置开始和结束时的动画效,另外,我们可以不对整个Activity覆盖遮罩,而是对某一个View覆盖遮罩。</p>
55
* <h3>注意:具体用法参见demo,内附详细注释</h3>
6-
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img1.png )</p>
6+
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img1.png )
77
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img2.png )</p>
8-
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img3.png )</p>
8+
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img3.png )
99
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img4.png )</p>
10-
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img5.png )</p>
10+
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img5.png )
1111

1212
* <h3>usage</h3>
1313
public class SimpleComponent implements Component {

app/src/main/assets/img2.png

-227 KB
Loading

app/src/main/assets/img3.png

-93.3 KB
Loading

app/src/main/assets/img4.png

-207 KB
Loading

app/src/main/assets/img5.png

-94.9 KB
Loading

0 commit comments

Comments
 (0)