-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to reset selection #20
Comments
What does reset the selection mean? You can select a tab programmatically by doing one of the following: // Selecting a tab by object reference
val tabToSelect = AnimatedBottomBar.tabs[1]
AnimatedBottomBar.selectTab(tabToSelect)
// Selecting a tab at a specific position
AnimatedBottomBar.selectTabAt(1)
// Selecting a tab by the given ID resource
AnimatedBottomBar.selectTabById(R.id.tab_home) Assuming you mean selecting the previously selected tab, you could keep track of the previously selected tab yourself, and then use one of the |
If I understand correctly you want a |
Added a |
was this added yet? |
solved my problem by just manually adding library as a module |
I have a use case where when the user selects a tab, a certain view would show. then if the user reselects that tab that view would disappear, but I can't find a way to deselect the tab or reset the selection.
I managed to handle this using this useful callback:
The text was updated successfully, but these errors were encountered: