Giter VIP home page Giter VIP logo

Comments (9)

madcyph3r avatar madcyph3r commented on August 17, 2024

I don't know there the problem is.

drawer.setCustomFragment(new ChildFragment(), "Child Title");

with this function, you can start unlimit fragments and so you can make a master child navigation.

from advancedmaterialdrawer.

patelakshay13890 avatar patelakshay13890 commented on August 17, 2024

How can have Multi drawer ??
I do need this badly..

On Tue, May 12, 2015 at 3:27 PM, madcyph3r [email protected] wrote:

I don't know there the problem is.

drawer.setCustomFragment(new ChildFragment(), "Child Title");

with this function, you can start unlimit fragments and so you can make a
master child navigation.


Reply to this email directly or view it on GitHub
#45 (comment)
.

from advancedmaterialdrawer.

madcyph3r avatar madcyph3r commented on August 17, 2024

If you want a new drawer, start a new activity and add a new drawer. On backPress you go back to the old activity. Don't call finish on activity start and all is good ;), you have your multi drawer.

// Don't close drawer activity
    @Override
    public boolean finishActivityOnNewIntent() {
        return false;
    }

Override this method in your activity.

For more see here:
https://github.com/madcyph3r/AdvancedMaterialDrawer/blob/master/example/src/main/java/de/madcyph3r/example/example/functionally/NoClosePrevDrawerActivity_Activity.java

A new drawer must be added in a new activity. If the drawer no changed, you use fragments.

Alternative:
Change the menu on a click, like here:
#44

from advancedmaterialdrawer.

patelakshay13890 avatar patelakshay13890 commented on August 17, 2024

How can we have Multi Drawer using Code not by using Intent ??

On Tue, May 12, 2015 at 3:40 PM, madcyph3r [email protected] wrote:

If you want a new drawer, start a new activity and add a new drawer. On
backPress you go back to the old activity. Don't call finish on activity
start and all is good ;), you have your multi drawer.

// Don't close drawer activity
@OverRide
public boolean finishActivityOnNewIntent() {
return false;
}

Override this method in your activity.

For more see here:

https://github.com/madcyph3r/AdvancedMaterialDrawer/blob/master/example/src/main/java/de/madcyph3r/example/example/functionally/NoClosePrevDrawerActivity_Activity.java

A new drawer must be added in a new activity. If the drawer no changed,
you use fragments.

Alternative:
Change the menu on a click, like here:
#44 #44


Reply to this email directly or view it on GitHub
#45 (comment)
.

from advancedmaterialdrawer.

madcyph3r avatar madcyph3r commented on August 17, 2024

This is not possible. There is no function, to change the drawer.

from advancedmaterialdrawer.

patelakshay13890 avatar patelakshay13890 commented on August 17, 2024

okay...
I need that

On Tue, May 12, 2015 at 3:52 PM, madcyph3r [email protected] wrote:

This is not possible. There is no function, to change the drawer.


Reply to this email directly or view it on GitHub
#45 (comment)
.

from advancedmaterialdrawer.

madcyph3r avatar madcyph3r commented on August 17, 2024

Why you can't make a new activity? Or change the menu, without to load a new activity?

from advancedmaterialdrawer.

skynetua avatar skynetua commented on August 17, 2024

Is there ability to navigate from top level child to previous child by back button? Should I implement custom back pattern or there are some ease way?

from advancedmaterialdrawer.

madcyph3r avatar madcyph3r commented on August 17, 2024

I think this is, what you want:
https://github.com/madcyph3r/AdvancedMaterialDrawer/blob/master/example/src/main/java/de/madcyph3r/example/example/backPattern/BackPatternLastSectionActivity.java

Use MaterialNavigationDrawer.BACKPATTERN_LAST_SECTION for your back pattern. Otherwise you must implement your own back pattern

from advancedmaterialdrawer.

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.