Coder Social home page Coder Social logo

Comments (9)

st235 avatar st235 commented on May 30, 2024 1

Sounds fair
Yeah, will update the library then

from expandablebottombar.

st235 avatar st235 commented on May 30, 2024

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.

dino-sunny avatar dino-sunny commented on May 30, 2024

I need to hide the notification dot when the user clicks on a specific menu item.

from expandablebottombar.

st235 avatar st235 commented on May 30, 2024

@dino-sunny,

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.

notjedi avatar notjedi commented on May 30, 2024

@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.

st235 avatar st235 commented on May 30, 2024

@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.

dino-sunny avatar dino-sunny commented on May 30, 2024

from expandablebottombar.

notjedi avatar notjedi commented on May 30, 2024

@st235 okay thanks. and if there is anything else i'll reach you out via email.

from expandablebottombar.

st235 avatar st235 commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.