githubwing / byeburger Goto Github PK
View Code? Open in Web Editor NEWAn Android behavior library let your titlebar or bottom navigation hiding on scroll ,极其简便的快速实现滑动隐藏标题栏和导航栏
An Android behavior library let your titlebar or bottom navigation hiding on scroll ,极其简便的快速实现滑动隐藏标题栏和导航栏
RT,不是应该不响应点击事件的吗?
标题遮挡下边内容怎么处理一下
CoordinatorLayout布局下的有Orientation这个属性么?title和bottom只有在CoordinatorLayout跟布局下才能生效。CoordinatorLayout跟FramLayout一样,那怎么调整两者的位置?
你好,貌似没有办法指定只监听指定的recyclerview的滑动, 而不是监听到所有的一级tab里所有页面recyclerview的滑动,比如我底部的第一个tab需要动画但是我第二个tab不需要这种情况。
例如在一个列表中,顶部有搜索框的,在往下滚动的时候隐藏搜索框,往上滚动的时候显示,因为你这个动画效果很好看,不知如何实现?
<android.support.design.widget.CoordinatorLayout>
<--! 这里放你的布局内容,可以是任意view-->
</android.support.design.widget.CoordinatorLayout>
这个样子的话,toolbar不会遮挡住recyclerView吗
使用TranslateAnimateHelper动画,需要减去状态栏高度才是最后的值,不知道有人遇到和我一样的问题没?我去掉状态栏的颜色设置也是一样的情况
华为及很多手机有虚拟按键,可以打开和关闭,状态切换后底部的布局显示位置就不正确了!
当滑动部分是recycleview时候,在临近最开始部分,向下滑动,顶部导航栏(即需要被隐藏的),有时候滑步出来,需要再次滑动一次才可以
当滑动部分是NestScrollView时候,就正常
我在自己的项目的代码:
---在ByeBurgerBehavior中添加:
protected AnimateHelper mAnimateHelper;
public static ByeBurgerBehavior from(View view) {//参考BottomSheetBehavior
ViewGroup.LayoutParams params = view.getLayoutParams();
if (!(params instanceof CoordinatorLayout.LayoutParams)) {
throw new IllegalArgumentException("The view is not a child of CoordinatorLayout");
}
CoordinatorLayout.Behavior behavior = ((CoordinatorLayout.LayoutParams) params).getBehavior();
if (!(behavior instanceof ByeBurgerBehavior)) {
throw new IllegalArgumentException(
"The view is not associated with ByeBurgerBehavior");
}
return (ByeBurgerBehavior) behavior;
}
public void collaps() {
if (mAnimateHelper != null) {
mAnimateHelper.hide();
}
}
public void expand() {
if (mAnimateHelper != null) {
mAnimateHelper.show();
}
}
---使用:
ByeBurgerBehavior behavior = ByeBurgerBehavior.from(bottomBar);
behavior.expand();
引入这个库之后,使用的时候会抛出异常:
You cannot keep your settings in the secure settings.
导致APP无法运行。怎么解决?
应用于toolbar和fab是正常的,在别的控件上会报这个错。
当FloatingActionButton使用ByeBurgerBottomBehavior时候可以发现问题TranslateAnimateHelper没有算margin
源码中ByeBurgerBehavior类的mAnimateHelper变量没有赋值,导致调用show方法空指针异常,ByeBurgerBehavior.from(mFab).show(),这个方法根本没办法使用,一调用就崩溃
使用这个标签,会有一片空白的空间
底部菜单点击不能放大或移动
如题,在嵌套多层fragment时,最内侧是可以响应滑动隐藏的,而再外侧就无法响应了。
例如,activity - fragment1 - fragment1.1
在fragment1.1中,滑动可以使fragment1的titlebar隐藏,但是activity中的底部导航就无法隐藏了。当取消fragment1中的滑动隐藏代码时,activity中的底部导航就可以响应滑动隐藏了。
希望大神指点
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.