Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd a public API for BottomAppBar in order to show/hide it programmatically #188
Comments
brainail
changed the title from
Add public API for BottomAppBar in order to show/hide it programmatically
to
Add a public API for BottomAppBar in order to show/hide it programmatically
Aug 27, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
firatkarababa
Aug 28, 2018
I am just curious, why do you need to show or hide BottomAppBar programmatically since show/hide on scroll already works when you set app:hideOnScroll="true" attribute in xml?
firatkarababa
commented
Aug 28, 2018
|
I am just curious, why do you need to show or hide BottomAppBar programmatically since show/hide on scroll already works when you set |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
brainail
Aug 28, 2018
hideOnScroll works well of course. But in my case, I want to show controls again when a user is about to start searching and it's not related to scrolling at all so that's why I need it. Also, I can imagine a case with some immersive-kinda manual mode when you want to show/hide all distracting details.
In a case of AppBarLayout, I am able to use its layout params and modify ScrollFlags in order to achieve such result.
brainail
commented
Aug 28, 2018
|
hideOnScroll works well of course. But in my case, I want to show controls again when a user is about to start searching and it's not related to scrolling at all so that's why I need it. Also, I can imagine a case with some immersive-kinda manual mode when you want to show/hide all distracting details. In a case of AppBarLayout, I am able to use its layout params and modify |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
firatkarababa
commented
Aug 28, 2018
|
Oh, I see it, you are right. It should be nice to have such an API. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
This was added in |
ymarian
closed this
Aug 31, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ftibi93
Sep 26, 2018
Are these changes available?
I am using com.google.android.material:material:1.0.0 but the mentioned methods' visibility are still protected both in BottomAppBar and HideBottomViewOnScrollBehavior classes.
ftibi93
commented
Sep 26, 2018
|
Are these changes available? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
That change will be available in the next release. |
brainail commentedAug 27, 2018
•
edited
Could you please add some simple public API for BottomAppBar in order to show/hide it programmatically.
For now, I've created the following workaround but I think it will be more logical to have it officially👨💼
Thanks!