samlss / lighter Goto Github PK
View Code? Open in Web Editor NEW💡A highlight & guide library for android.
License: Apache License 2.0
💡A highlight & guide library for android.
License: Apache License 2.0
MarginOffset中的public MarginOffset(int leftOffset, int rightOffset, int topOffset, int bottomOffset)希望能保持android原生的LTRB的顺序,与原生保持一致。
您好,那个背景的颜色是否可以自己调节
W/View: requestLayout() improperly called by me.samlss.lighter.view.LighterView{2cb6a676 V.ED..C. ......ID 540,1676-540,1676} during layout: running second layout pass
View: requestLayout() improperly called by android.widget.RelativeLayout{25c10477 V.E..... ......I. 0,0-0,0} during layout: running second layout pass
报这个错,没有显示tip。但是我用getActivity就可以(但是没有绑定到指定的view),用getView就报这个错误。不知道怎么解决,希望大佬指导一下。
the library is pretty good but it highlights the wrong view and wrong portion of it
不能设置tip相对于view剧中?
setTipLayoutId调用的布局如果宽高都是match_parent的就无法完全显示
Need to move this library to maven centre as the jcenter will no longer be available from Feb2022.
https://onesignal.com/blog/android-migrate-jcenter-to-maven-central/
个人建议,不知是否已提供设置项
看Demo都是点击item后出现,但实际应用中应该都是某个item滑动出来的时候,判断如果是第一次看到就自动弹出引导图。请问这种效果支持么?
为什么有的会偏移?求指教
Lighter.with(this)
.setBackgroundColor(0xB3000000)
.setOnLighterListener(new OnLighterListener() {
@OverRide
public void onShow(int index) {
Toast.makeText(getApplicationContext(), "正在显示第" + (index + 1) + "高亮", Toast.LENGTH_SHORT).show();
}
@Override
public void onDismiss() {
Toast.makeText(getApplicationContext(), "高亮已全部显示完毕", Toast.LENGTH_SHORT).show();
}
})
.addHighlight(new LighterParameter.Builder()
.setHighlightedViewId(R.id.pb_left_head_layout)
.setTipView(view)
.setLighterShape(new RectShape(5, 5, 30))
.setTipViewRelativeDirection(Direction.BOTTOM)
.setTipViewRelativeOffset(new MarginOffset(0, 0, 5, 0))
.build())
.addHighlight(new LighterParameter.Builder()
.setHighlightedViewId(R.id.pb_right_head_layout)
.setTipView(view)
.setLighterShape(new RectShape(5, 5, 30))
.setTipViewRelativeDirection(Direction.BOTTOM)
.setTipViewRelativeOffset(new MarginOffset(0, 0, 5, 0))
.build())
.addHighlight(new LighterParameter.Builder()
.setHighlightedViewId(R.id.pb_current_question_tv)
.setTipView(view)
.setLighterShape(new RectShape(5, 5, 30))
.setTipViewRelativeDirection(Direction.BOTTOM)
// .setTipViewRelativeOffset(new MarginOffset(0, 0, 5, 0))
.build())
.show();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.