-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to open the drawer by dragging from the middle of the screen? #48
Comments
Can anyone please help me with this? |
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 |
then what dependencies are needed? mihon the help. the problem is using a
manual.
Pada tanggal Sab, 28 Nov 2020 01.14, Enya Quetzalli Gómez Rodríguez <
notifications@github.com> menulis:
… 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!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARMB35FZNS5Q4ZCKFV32BXDSR7UADANCNFSM4EV4AN2A>
.
|
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). |
Is there a cleaner way to set an offset margin to the left screen edge so that I can open the drawer menu with a drag in the middle of the open fragment/screen? Because it is really difficult to reach the left edge if the device has a 6.3 inch screen.
The text was updated successfully, but these errors were encountered: