GuideView
动态可定制引导页
Install / Use
/learn @zhazhaxin/GuideViewREADME
GuideView
- gradle
compile 'cn.Lemon:guideview:1.0.0'
- 方法回调顺序
* 方法回调:创建GuideView -- initParams(初始化参数) -- getTargetViewPosition(获取TargetView位置核心方法) -- show(添加GuideView进DecorView)
* -- addHintView -- GuideView.onMeasure -- GuideView.onLayout -- GuideView.onDraw
- 使用
public void onResume() {
super.onResume();
fragment.post(new Runnable() {
@Override
public void run() {
showGuideViews();
}
});
}
public void showGuideViews() {
TextView mHintView = new TextView(getActivity());
mHintView.setText("hello word");
mHintView.setTextSize(15);
mHintView.setTextColor(Color.WHITE);
mGVOne = new GuideView.Builder(getActivity())
.setTargetView(R.id.text_one)
.setHintView(mHintView)
.setHintViewDirection(Direction.BOTTON)
.setTransparentOvalPadding(20)
.setHintViewMarginTop(100)
.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mGVOne.hide();
mGVTwo.show();
}
})
.create();
mGVOne.show();
}
- Demo效果图
License
This project is licensed under the terms of the Apache License 2.0
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
