Comments (9)
Sounds fair
Yeah, will update the library then
from expandablebottombar.
Hi @dino-sunny 👋,
Thank you for provided info.
It's sounds like expected behavior. Can you, please, explain why you need listen item selection with navigation ui?
Kind regards,
Alexander Dadukin
from expandablebottombar.
I need to hide the notification dot when the user clicks on a specific menu item.
from expandablebottombar.
by the way, looks like default BottomNavigationView
view behaves in the same strange way. Moreover, looks like it was done by intention, not by an incident. Probably, you need to listen to onDestinationChanged
callback in your case
from expandablebottombar.
@st235 sorry to bother about something silly but how do you create pr's to your own repo. i know you could crate a pr if you have a branch but you don't seem to have any. how do you do it? thanks and sorry.
from expandablebottombar.
@jedi2610, hi 👋
Thank you for reaching me out. However, this issue is not related to your problem and may confuse other participants in the conversation. I would recommend you to open another issue further. Moreover, there are a lot of different ways to contact me if you have some unspecified topic question. For example, you can drop me a letter via email.
Answering your question: as you can see at closed PRs there are always existed a branch, but when the feature (or any work in the branch) is over it's no longer needed to keep this branch separately, so, I would prefer to delete it. Hopefully, provided explanation gave you a brief summary of how does it actually work at this repo.
Kind regards,
Alexander Dadukin
from expandablebottombar.
from expandablebottombar.
@st235 okay thanks. and if there is anything else i'll reach you out via email.
from expandablebottombar.
Hi @dino-sunny 👋
Thank you for your patience, I really appreciate it.
Yeah, my initial guess was right - when you're using NavigationUI
you don't need to listen to onItemSelected
event separately. All you need to do is subscribe to destinationChangedListener
and implement the desired behaviour in it, for example like in:
navigationController.addOnDestinationChangedListener { controller, destination, arguments ->
if(destination.id != R.id.fragment1) {
val navigation = bottomNavigation.getNotificationFor(R.id.fragment1)
navigation.clear()
}
}
Hopefully, it helps.
PS: BottomNavigationView
follows exactly the same behaviour
Best wishes,
Alexander Dadukin
from expandablebottombar.
Related Issues (20)
- avoid recreation of fragment HOT 7
- Is there a way to use this in a java project? HOT 32
- bottom bar has a peek height HOT 27
- How add badge for menu items? HOT 5
- custom font support for text in bottom bar HOT 4
- Hacktoberfest 2020 HOT 1
- how can i use onItemSelectedListener?
- dynamic item control HOT 3
- Default Item selection HOT 3
- setting Font or typeface to title's HOT 1
- There was a problem when importing version 1.4.0 HOT 3
- Back Stack maintain Without Recreating Fragment HOT 6
- Back Stack maintain Without Recreating Fragment HOT 1
- Bottom Bar not showing properly HOT 4
- ExpandableBottomBarScrollableBehavior isn't working for me. HOT 9
- Failed to resolve: HOT 1
- how to select menu item via position HOT 1
- Class referenced in the layout file, github.com.st235.lib_expandablebottombar.ExpandableBottomBar, was not found in the project or the libraries HOT 6
- White background under icon and title of item selected in a fragment layout HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expandablebottombar.