Comments (6)
Hi, I want to show fragments in MVVM arc, but I get crashes, anybody can handle fragments with this library?
I haven't tried it in MVVM arc, but you can try it like this:
mbn_navigation.setOnClickMenuListener {
when(it.id) {
HOME -> addFragment(HomeFragment.newInstance()) // TODO: ADD FRAGMENT
AR -> addFragment(ARFragment.newInstance()) // TODO: ADD FRAGMENT
SETTING -> addFragment(SettingFragment.newInstance()) // TODO: ADD FRAGMENT
}
}
hopefully can help you :)
from meowbottomnavigation.
hi pro ,please if you dont mind . iam trying for 2 week in this library .
i want when click open view in the same screen
notes:- and i dont how to do fragment
plesssssssssss
from meowbottomnavigation.
Hi, I want to show fragments in MVVM arc, but I get crashes, anybody can handle fragments with this library?
I haven't tried it in MVVM arc, but you can try it like this:
mbn_navigation.setOnClickMenuListener { when(it.id) { HOME -> addFragment(HomeFragment.newInstance()) // TODO: ADD FRAGMENT AR -> addFragment(ARFragment.newInstance()) // TODO: ADD FRAGMENT SETTING -> addFragment(SettingFragment.newInstance()) // TODO: ADD FRAGMENT } }
hopefully can help you :)
pro in the same screen how
plesssss
from meowbottomnavigation.
please speak in your language and i will translated it
from meowbottomnavigation.
Hi, I want to show fragments in MVVM arc, but I get crashes, anybody can handle fragments with this library?
I haven't tried it in MVVM arc, but you can try it like this:
mbn_navigation.setOnClickMenuListener { when(it.id) { HOME -> addFragment(HomeFragment.newInstance()) // TODO: ADD FRAGMENT AR -> addFragment(ARFragment.newInstance()) // TODO: ADD FRAGMENT SETTING -> addFragment(SettingFragment.newInstance()) // TODO: ADD FRAGMENT } }
hopefully can help you :)
pro in the same screen how
plesssss
mbn_navigation.setOnClickMenuListener {p1 ->
val i = p1.id
when(i) {
// use the integer value that corresponds to how you set the image that represents the menu item
1 -> {
addFragment(HomeFragment.newInstance()) // TODO: ADD FRAGMENT
}
2 -> addFragment(ARFragment.newInstance()) // TODO: ADD FRAGMENT
3 -> addFragment(SettingFragment.newInstance()) // TODO: ADD FRAGMENT
}
}
from meowbottomnavigation.
I updated ReadMe.md file. Just check it.
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
- Remove Jcenter because it was shutdown
- On Navigation Listener is not Working
- 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.