Need help with FullDraggableDrawer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

PureWriter
215 Stars 12 Forks Apache License 2.0 22 Commits 1 Opened issues

Description

Make Android DrawerLayout can be dragged out in real-time within the range of fullscreen

Services available

!
?

Need anything else?

Contributors list

# 6,552
Kotlin
sqlite3
java8
multity...
21 commits

FullDraggableDrawer

License maven-central

Make the

DrawerLayout
can be dragged/pulled out in real-time within the range of fullscreen, like Pure Writer

* Full demo video: https://t.me/PureWriter/549

Getting started

In your

build.gradle
:
dependencies {
  implementation 'com.drakeet.drawer:drawer:1.0.3'
  // Optional: No need if you just use the FullDraggableHelper
  implementation 'androidx.drawerlayout:drawerlayout:1.1.1'
}

Usage

Replace the main Layout of

DrawerLayout
with the
FullDraggableContainer
(or you can just add it as a new wrapper/layer):
  

<com.drakeet.drawer.fulldraggablecontainer android:layout_width="match_parent" android:layout_height="match_parent">

<!-- ... -->

</com.drakeet.drawer.fulldraggablecontainer>

<!-- ... -->

</androidx.drawerlayout.widget.drawerlayout>

That's all, you're good to go!

Advanced usage

See

com.drakeet.drawer.FullDraggableHelper

TODO

  • [x] Add support for the right drawer / RTL
  • [x] Add support for other kinds of drawers

License

Copyright (c) 2021. Drakeet Xu

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.