FullDraggableDrawer

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

License

License

GroupId

GroupId

com.drakeet.drawer
ArtifactId

ArtifactId

drawer
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

aar
Description

Description

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

Project URL

https://github.com/PureWriter/FullDraggableDrawer
Source Code Management

Source Code Management

https://github.com/PureWriter/FullDraggableDrawer

Download drawer

How to add to project

<!-- https://jarcasting.com/artifacts/com.drakeet.drawer/drawer/ -->
<dependency>
    <groupId>com.drakeet.drawer</groupId>
    <artifactId>drawer</artifactId>
    <version>1.0.3</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.drakeet.drawer/drawer/
implementation 'com.drakeet.drawer:drawer:1.0.3'
// https://jarcasting.com/artifacts/com.drakeet.drawer/drawer/
implementation ("com.drakeet.drawer:drawer:1.0.3")
'com.drakeet.drawer:drawer:aar:1.0.3'
<dependency org="com.drakeet.drawer" name="drawer" rev="1.0.3">
  <artifact name="drawer" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.drakeet.drawer', module='drawer', version='1.0.3')
)
libraryDependencies += "com.drakeet.drawer" % "drawer" % "1.0.3"
[com.drakeet.drawer/drawer "1.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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):

<androidx.drawerlayout.widget.DrawerLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/drawer"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

  <!-- here 👇 -->
  <com.drakeet.drawer.FullDraggableContainer
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <!-- ... -->

  </com.drakeet.drawer.FullDraggableContainer>

  <FrameLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="left">

    <!-- ... -->

  </FrameLayout>

</androidx.drawerlayout.widget.DrawerLayout>

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

Advanced usage

See com.drakeet.drawer.FullDraggableHelper

TODO

  • Add support for the right drawer / RTL
  • 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.
com.drakeet.drawer

Pure Writer

❤️ Open Sources from Pure Writer

Versions

Version
1.0.3
1.0.2
1.0.1
1.0.0
0.9.0