Skip to content

Commit

Permalink
commit 演示图片
Browse files Browse the repository at this point in the history
  • Loading branch information
binIoter committed Aug 24, 2016
1 parent d390c59 commit 351d71c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
* <h3>工作原理</h3>
* 首先它需要一个目标View或者它的id,我们通过findViewById来得到这个View,计算它在屏幕上的区域targetRect,通过这个区域,开始绘制一个覆盖整个Activity的遮罩,可以定义遮罩的颜色和透明度,然而目标View被绘制成透明从而实现高亮的效果。接下来是在相对于这个targetRect的区域绘制一些图片或者文字。我们把这样一张图片或者文字抽象成一个Component接口,设置文字或者图片,所有的图片文字都是相对于targetRect来定义的。可以设定额外的x,y偏移量,可以对遮罩系统设置可见状态的发生变化时的监听回调,可以对遮罩系统设置开始和结束时的动画效,另外,我们可以不对整个Activity覆盖遮罩,而是对某一个View覆盖遮罩。</p>
* <h3>注意:具体用法参见demo,内附详细注释</h3>
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/res/assets/review.gif )</p>
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img1.png )</p>
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img2.png )</p>
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img3.png )</p>
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img4.png )</p>
* ![image]( https://github.com/binIoter/GuideView/blob/master/app/src/main/assets/img5.png )</p>

* <h3>usage</h3>
public class SimpleComponent implements Component {
Expand Down
Binary file modified app/src/main/assets/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 351d71c

Please sign in to comment.