【开源】ShowTipsView

ShowTipsView

使用说明:

 

1
2
3
4
5
6
7
ShowTipsView showtips = new ShowTipsBuilder(this)
    .setTarget(btn_test)
    .setTitle("A magnific button")
    .setDescription("This button do nothing so good")
    .setDelay(1000)
    .build();
showtips.show(this);

自定义:

1
2
3
4
5
//COLORS
setTitleColor(int color)
setDescriptionColor(int color)
setBackgroundColor(int color)
setCircleColor(int color)

默认情况下圆圈的大小和目标view的自身大小匹配,你也可以自己指定半径:

1
setTarget(View v, int x, int y, int radius)

可以通过go it 回调方法,继续指定需要高亮的对象:

1
2
3
4
5
6
showtips.setCallback(new ShowTipsInterface(){
    @Override
    public void gotItClicked() {
    //Lunch new showtip
    }
});

posted on 2015-03-30 10:51  wasdchenhao  阅读(142)  评论(0)    收藏  举报

导航