Git Product home page Git Product logo

Comments (10)

DevUai avatar DevUai commented on June 30, 2024 1

Any solution? I'm having the same problem with the Java version.

from meowbottomnavigation.

oneHamidreza avatar oneHamidreza commented on June 30, 2024

i will check it.

from meowbottomnavigation.

mohammedelnady avatar mohammedelnady commented on June 30, 2024

Untill now there is no solution for that
Also in kotlin code there is abug
And the creator of this lib admit that there is no bug 🤷‍♂️🤷‍♂️🤷‍♂️

from meowbottomnavigation.

iabduul7 avatar iabduul7 commented on June 30, 2024

@oneHamidreza ? did you fixed the issue???

from meowbottomnavigation.

Shamseldienmahmoud avatar Shamseldienmahmoud commented on June 30, 2024

@oneHamidreza did you fixed the issue???

from meowbottomnavigation.

iabduul7 avatar iabduul7 commented on June 30, 2024

@oneHamidreza did you fixed the issue???

their is a simple hack to this problem, I used it in Java version, I don't will it work on Kotlin side or not but here is it.

When you want to set on Menu Click Listeners, change the UI element in this method, I mean in case of fragments just switch between fragments and the other method which causes the issue is OnShowListener, actually this method is called whenever we interact with GUI Input fields i.e. opening keyboard etc. but to make the app execute this method must be called which I don't know why, so just call this method om MeowBottomNavigation reference and do not put any code inside it, you can just put a logcat line. And that's it, it will work.
please test it in Kotlin and let me know if it really works.

from meowbottomnavigation.

Shamseldienmahmoud avatar Shamseldienmahmoud commented on June 30, 2024

@oneHamidreza did you fixed the issue???

their is a simple hack to this problem, I used it in Java version, I don't will it work on Kotlin side or not but here is it.

When you want to set on Menu Click Listeners, change the UI element in this method, I mean in case of fragments just switch between fragments and the other method which causes the issue is OnShowListener, actually this method is called whenever we interact with GUI Input fields i.e. opening keyboard etc. but to make the app execute this method must be called which I don't know why, so just call this method om MeowBottomNavigation reference and do not put any code inside it, you can just put a logcat line. And that's it, it will work.
please test it in Kotlin and let me know if it really works.

please upload ur code in java

from meowbottomnavigation.

iabduul7 avatar iabduul7 commented on June 30, 2024

@oneHamidreza did you fixed the issue???

their is a simple hack to this problem, I used it in Java version, I don't will it work on Kotlin side or not but here is it.
When you want to set on Menu Click Listeners, change the UI element in this method, I mean in case of fragments just switch between fragments and the other method which causes the issue is OnShowListener, actually this method is called whenever we interact with GUI Input fields i.e. opening keyboard etc. but to make the app execute this method must be called which I don't know why, so just call this method om MeowBottomNavigation reference and do not put any code inside it, you can just put a logcat line. And that's it, it will work.
please test it in Kotlin and let me know if it really works.

please upload ur code in java

bottomNavigation.setOnShowListener(new MeowBottomNavigation.ShowListener() { @Override public void onShowItem(MeowBottomNavigation.Model item) { Log.d("mainActivity1122-show", String.valueOf(item.getId())); } });

//it is called whenever an already selected menu button is selected again bottomNavigation.setOnReselectListener(new MeowBottomNavigation.ReselectListener() { @Override public void onReselectItem(MeowBottomNavigation.Model item) { // your codes Log.d("mainActivity1122-reselected", String.valueOf(item.getId())); } });

just call these two methods like this, everything will work fine.

from meowbottomnavigation.

oneHamidreza avatar oneHamidreza commented on June 30, 2024

Duplicate #52

from meowbottomnavigation.

mohammedelnady avatar mohammedelnady commented on June 30, 2024

not

from meowbottomnavigation.

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.