Comments (10)
Any solution? I'm having the same problem with the Java version.
from meowbottomnavigation.
i will check it.
from meowbottomnavigation.
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.
@oneHamidreza ? did you fixed the issue???
from meowbottomnavigation.
@oneHamidreza did you fixed the issue???
from meowbottomnavigation.
@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.
@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.
@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.
Duplicate #52
from meowbottomnavigation.
not
from meowbottomnavigation.
Related Issues (20)
- Any way to add Lottie icon ? or perhaps a Gif ?
- Png images not showing correctly
- how to set circle navigation & icon size?
- How to change current cell position?
- The first page doesn't show any thing HOT 1
- Unselect all
- bottom navigation bar color not changing
- How to use this with NavController
- How can I hide the bottom navigation in secondary fragments?
- Meowbottomnavigation.ClickListner not working in Android with Java Project
- Unable to add Drawable icon
- Lack of recognition in Java HOT 7
- how to set selected item
- How can we customize the curves?
- Library Not working in my android Kotlin project HOT 1
- The library cannot be downloaded (Failed to resolve: com.etebarian:meow-bottom-navigation:1.3.1) HOT 6
- support issue
- How to use drawable or bitmap get from internet image
- How to add top left, top right corner into bottom navigation
- 1.3.1 dont show icons correctly HOT 3
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 meowbottomnavigation.