Giter Site home page Giter Site logo

Comments (6)

renaldi2108 avatar renaldi2108 commented on July 17, 2024 2

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.

ahmedkabut avatar ahmedkabut commented on July 17, 2024

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.

ahmedkabut avatar ahmedkabut commented on July 17, 2024

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.

oneHamidreza avatar oneHamidreza commented on July 17, 2024

please speak in your language and i will translated it

from meowbottomnavigation.

banjodayo39 avatar banjodayo39 commented on July 17, 2024

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.

oneHamidreza avatar oneHamidreza commented on July 17, 2024

I updated ReadMe.md file. Just check it.

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.