Comments (4)
Can anyone please help me with this?
How to open the drawer by dragging from the middle of the screen?
from slidingrootnav.
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.
from slidingrootnav.
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)
- Change edgeTouched boolean value? HOT 1
- onKeyDown() was not be called
- Fatal Exception: java.lang.IllegalArgumentException parameter must be a descendant of this view HOT 3
- Jcenter will be deprecated as of May
- Hamburger icon doesnt work when using .withContentClickableWhenMenuOpened(false)
- Icon Colors and Title Color and Text Not Visible
- Upgrade this library
- Fragment Issue
- 依赖不成功
- Dragg the main layout
- 导入第三方库不成功
- questions HOT 1
- Type mismatch. Required: Nothing Found: DrawerAdapter.ViewHolder migrate to Kotlin
- Failed to resolve: com.yarolegovich:sliding-root-nav:1.1.1 HOT 13
- convert side menu to default navigation menu
- How can I set event listener?
- issue with landscape mode HOT 1
- Full Drag Screen
- 3D Effect
- Kotlin
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 slidingrootnav.