Giter Site home page Giter Site logo

Comments (4)

vikas-jain-plutus avatar vikas-jain-plutus commented on May 20, 2024

Can anyone please help me with this?
How to open the drawer by dragging from the middle of the screen?

from slidingrootnav.

equetzal avatar equetzal commented on May 20, 2024

Can anyone please help me with this?
How to open the drawer by dragging from the middle of the screen?

You need to modify the library itself, so download the repo and then import the library on Android Studio (I parsed all the library to Kotlin to do it easy but you can use the Java one). Then on this file https://github.com/yarolegovich/SlidingRootNav/blob/master/library/src/main/java/com/yarolegovich/slidingrootnav/SlidingRootNavLayout.java, you need to change the line 263 from return child == rootView && isOnEdge; to return child == rootView, this is going to quit the restriction of only open if is being dragged from the edge.
Probably this should be configurable on the API, but this is how the made the library, so yes, you need to modify the library to do that.
Hope it helps you!

from slidingrootnav.

gusio-ai avatar gusio-ai commented on May 20, 2024

from slidingrootnav.

equetzal avatar equetzal commented on May 20, 2024

You can put 'library' on gradle for the local libraries (there are a lot of tutorials on how to import a github library to you project on android studio), or you can copy-paste each class and change the package if you want to include it on the project itself (just remember to use the license).

from slidingrootnav.

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.