Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

EasyGuideView

> 开发工具
Open source

Android app新手引导,任意View高亮提示,简单易用

197 stars0 likes0 views
WebsiteGitHub

About

Android app新手引导,任意View高亮提示,简单易用

EasyGuideView

Android app新手引导高亮提示,简单易用

效果

添加依赖

compile 'com.yuyh.easyguideview:library:1.2.2'

基本使用

…

如何判断绘制完成?可重写activity的void onWindowFocusChanged(boolean hasFocus)方法,建议使用以下方式:

java

// 等待高亮View加载完成之后再调用显示引导层,例如对于hightLightView高亮来说:
hightLightView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
    @Override
    public void onGlobalLayout() {// 加载完成后回调

        // 务必取消监听,否则会多次调用
        if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
            hightLightView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
        } else {
            hightLightView.getViewTreeObserver().removeGlobalOnLayoutListener(this);
        }

        // TODO 显示高亮布局!

    }
});

新手引导层状态改变监听

java
easyGuide.setOnStateChangedListener(new OnStateChangedListener() {
    @Override
    public void onShow() {

    }

    @Override
    public void onDismiss() {

    }

    @Override
    public void onHeightlightViewClick(View view) {
        Log.i("TAG", "点击了view:" + view.getId());
    }
});

LICENSES

Copyright (C) 2016 smuyyh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidguide

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具