Giter VIP home page Giter VIP logo

Comments (5)

thevirus20 avatar thevirus20 commented on July 18, 2024

You can add this method

public boolean isDrawerOpen(){
    return drawerLayout.isDrawerOpen(drawerViewGroup);
}

To toggle , can add a method like this.

public void toggleDrawer(){
    if(isDrawerOpen())
        closeDrawer();
    else
        openDrawer();
}

from advancedmaterialdrawer.

patelakshay13890 avatar patelakshay13890 commented on July 18, 2024

But there is no method such as drawerLayout.isDrawerOpen(drawerViewGroup)
!!!

On Thu, Apr 23, 2015 at 2:37 PM, thevirus20 [email protected]
wrote:

You can add this method

public boolean isDrawerOpen(){
return drawerLayout.isDrawerOpen(drawerViewGroup);
}

To toggle , can add a method like this.

public void toggleDrawer(){
if(isDrawerOpen())
closeDrawer();
else
openDrawer();

}


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

from advancedmaterialdrawer.

thevirus20 avatar thevirus20 commented on July 18, 2024

You need to add those two method in MaterialNavigationDrawer.java then use it in activity extending Drawer like this,

drawer.toggle();

Are you using this lib as source or using maven?

from advancedmaterialdrawer.

madcyph3r avatar madcyph3r commented on July 18, 2024

I will add the methods from thevirus20. After this, i will relase a new lib version. The new version will have the methods you neeeded. For now see the answers from thevirus20, you must add the methods yourself.

from advancedmaterialdrawer.

madcyph3r avatar madcyph3r commented on July 18, 2024

I have added it. Use the latest git. The next week, i will push a new release.

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.