qiantao94 / coordinatormenu Goto Github PK
View Code? Open in Web Editor NEWQQ 6.x Slide Menu
QQ 6.x Slide Menu
友情提醒:该库兼容性问题较多,最好把代码copy下来根据自己项目的实际需求做相应的适配!!!
我试了几种方法,都不行,能否提供个菜单栏全屏的方法呢
1.main视图中,如果有viewPager,右滑会冲突,建议博主在CoordinatorMenu的getChildAt(1)的View换成写一个自定义ViewGroup处理收拾;
2.展开菜单的时候,对右侧阴影部分点击— —如果点击的主视图中控件恰好自身有点击事件,不会关闭菜单。我的做法还是在1的建议中对自定义的MainView重写onTouch事件,if (cm.isOpened()) {
if (event.getAction() == MotionEvent.ACTION_UP) {
cm.closeMenu();
}
return true;
}
其中cm是CoordinatorMenu的对象,在您的onFinishInflate方法的时候设置一下初始化。
mMainView = (MainView) getChildAt(1);
mMainView.setCoordinatorMenu(this);
想请教下如何设置侧滑栏只有在左边缘滑动的时候才能拉出来?现在的范围有点大,想缩小一点
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.