aurelhubert / aurelhubert/ahbottomnavigation
hide/show when recycler scroll inside Conductor view doesn't work
- Dominant language
- Java
- Stars
- 3.8k
- Forks
- 672
- PR merge metrics
- No merged PRs in 30d
Description
@jahirfiquitiva said in this issue [here](https://github.com/aurelhubert/ahbottomnavigation/issues/364)
> If you use the RecyclerView inside a CoordinatorLayout this should suffice:
bottomNavigation.setBehaviorTranslationEnabled(true);
I have a recyclerView inside a CoordinatorLayout but it does't work. Am I forgetting something?
MainActivity
```
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.main_view)
initRoute(savedInstanceState)
initNavBar()
}
```
```
val navigationAdapter = AHBottomNavigationAdapter(this, R.menu.navigation)
navigation?.let { safeNave ->
navigationAdapter.setupWithBottomNavigation(safeNave)
safeNave.isBehaviorTranslationEnabled = true
safeNave.setOnTabSelectedListener { position, wasSelected ->
when (position) {
1 -> router.pushController(RouterTransaction.with(FeedController()))
2 -> router.pushController(RouterTransaction.with(HostFormController()))
3 -> router.pushController(RouterTransaction.with(ContentController()))
4 -> router.pushController(RouterTransaction.with(LessonController()))
5 -> router.pushController(RouterTransaction.with(AccountController()))
}
true
}
}
```
Main XML
```
```
And finnaly, the recycler who has ID activeFormRecycleView that might hide/show the menu.
```
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with MainActivity, main_view, and the layout containing activeFormRecycleView; inspect how the Conductor container, CoordinatorLayout behavior, and RecyclerView are connected. Reproduce the scroll interaction and compare it with the documented setBehaviorTranslationEnabled usage. Done means the bottom navigation reliably hides and shows when the relevant RecyclerView scrolls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin, xml
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100