[英]Bottom Navigation hide on scroll Recycler view issue
I am using AHBottomNavigation This Tutorial 我正在使用AHBottomNavigation 本教程
Problem is Bottom Navigation bar hides when i scroll list, how to stop hiding bottom Navigation bar on list view scroll. 问题是当我滚动列表时,底部导航栏隐藏,如何在列表视图滚动上停止隐藏底部导航栏。
Scrolling Behavior is like this But I want to fix(Always visible) Bottom Navigation bar. 滚动行为就像是这样 ,但我想修复(始终可见)底部导航栏。 How to stick this bar.
如何坚持这个酒吧。
Thanks in advance. 提前致谢。
AHBottomNavigation
view has a method setBehaviorTranslationEnabled(boolean behaviorTranslationEnabled) . AHBottomNavigation
视图有一个方法setBehaviorTranslationEnabled(boolean behaviorTranslationEnabled) 。 When disabled, the view won't scroll (according to AHBottomNavigationBehavior
's method handleDirection(V child, int scrollDirection)
). 禁用时,视图不会滚动(根据
AHBottomNavigationBehavior
的方法handleDirection(V child, int scrollDirection)
)。
Hope this helps. 希望这可以帮助。
You need to use setBehaviorTranslationEnabled(boolean behaviorTranslationEnabled)
and pass false
inside that. 您需要使用
setBehaviorTranslationEnabled(boolean behaviorTranslationEnabled)
并在其中传递false
。 That method is available in you library class. 您可以在库类中使用该方法。
You might have done this 你可能已经这样做了
AHBottomNavigation aHBottomNavigation = new AHBottomNavigation();
you just need to do this 你只需要这样做
aHBottomNavigation.setBehaviorTranslationEnabled(false);
This will work, I also have the same issue. 这将有效,我也有同样的问题。
AHBottomNavigation bottomNavigation = new AHBottomNavigation();
bottomNavigation.setBehaviorTranslationEnabled(false);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.