In my application I have an activity. By attaching the fragment to the activity I hide the BottomAppBar
. So in my Fragment the BottomAppBar
is not visible. When I change the orientation from portrait to landscape the BottomAppBar
is visible after orientation change. So onResume
I put this myBottomBar.performHide()
in my Fragment but this has no effect. The BottomAppBar
is still visible. Furthermore in the layout file I set the flag app:hideOnScroll="true"
to the BottomAppBar
but this also don't work after an orientation change.
Asked
Active
Viewed 343 times
2
-
Not sure, but have you checked on the 'onConfigurationChanged()' method? – March3April4 Aug 08 '19 at 09:49
-
Yes, I tried to call the `myBottomBar.performHide()` in onConfiguration change but this also had no effect. – dudi Aug 08 '19 at 09:53
-
I guess you should post your `layout.xml` for `app:hideOnScroll="true"` behavior... the scrolling view should be inside a `NestedScrollView`. Because it uses a custom `CoordinatorLayout.Behavior
` which is dependent on an instance of `NestedScrollView`. Also it would be great if you could post some of the code. – Santanu Sur Aug 08 '19 at 09:53