All Projects → psdcompany → Duo Navigation Drawer

psdcompany / Duo Navigation Drawer

Licence: apache-2.0
A flexible, easy to use, unique drawer library for your Android project.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Duo Navigation Drawer

Drawer Behavior Flutter
Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
Stars: ✭ 110 (-88.84%)
Mutual labels:  menu, slide, drawer, navigation-drawer, drawerlayout
Drawer Behavior
Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
Stars: ✭ 394 (-60.04%)
Mutual labels:  slide, drawer, navigation-drawer, drawerlayout
Beagle
A smart, reliable, and highly customizable debug menu library for Android apps that supports screen recording, network activity logging, and many other useful features.
Stars: ✭ 287 (-70.89%)
Mutual labels:  library, menu, drawer
Materialdrawer
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
Stars: ✭ 11,498 (+1066.13%)
Mutual labels:  drawer, navigation-drawer, drawerlayout
Custom Navigation Drawer
Custom Navigation Drawer Library for Android
Stars: ✭ 364 (-63.08%)
Mutual labels:  library, navigation-drawer, drawerlayout
minavdrawer
Easy to add different animations into standard NavigationDrawer.
Stars: ✭ 93 (-90.57%)
Mutual labels:  drawer, navigation-drawer, drawerlayout
CoolSlidingMenu
A powerful menu that you can customize it。
Stars: ✭ 25 (-97.46%)
Mutual labels:  slide, menu
Slidingrootnav
DrawerLayout-like ViewGroup, where a "drawer" is hidden under the content view, which can be shifted to make the drawer visible.
Stars: ✭ 2,939 (+198.07%)
Mutual labels:  navigation-drawer, drawerlayout
Pytorch Tutorials Examples And Books
PyTorch1.x tutorials, examples and some books I found 【不定期更新】整理的PyTorch 1.x 最新版教程、例子和书籍
Stars: ✭ 346 (-64.91%)
Mutual labels:  library, slide
drawer
A touch-enabled drawer component for the modern web.
Stars: ✭ 26 (-97.36%)
Mutual labels:  drawer, menu
Tinyconstraints
Nothing but sugar.
Stars: ✭ 3,721 (+277.38%)
Mutual labels:  library, layout
Vue Drawer Layout
A simple DrawerLayout component for Vue.js.
Stars: ✭ 392 (-60.24%)
Mutual labels:  drawer, drawerlayout
drawer-with-bottom-navigation-architecture
Sample android kotlin project with both drawer and bottom navigation together
Stars: ✭ 42 (-95.74%)
Mutual labels:  drawer, navigation-drawer
react-native-navigation-drawer-layout
React Native library to generate navigation drawer layout.
Stars: ✭ 26 (-97.36%)
Mutual labels:  drawer, drawerlayout
react-native-panel
A Customizable React Native Panel for Android and iOS
Stars: ✭ 35 (-96.45%)
Mutual labels:  slide, menu
Ngx Ui
🚀 Style and Component Library for Angular
Stars: ✭ 534 (-45.84%)
Mutual labels:  library, drawer
Materialdrawerkt
A Kotlin DSL wrapper around the mikepenz/MaterialDrawer library.
Stars: ✭ 508 (-48.48%)
Mutual labels:  drawer, navigation-drawer
Shadowlayout
This library allows you to create a shadow effect for your layout based on your child.
Stars: ✭ 553 (-43.91%)
Mutual labels:  library, layout
Androidlibs
🔥正在成为史上最全分类 Android 开源大全~~~~(长期更新 Star 一下吧)
Stars: ✭ 7,148 (+624.95%)
Mutual labels:  library, layout
uPortal-web-components
A collection of uPortal Web Components and JavaScript utilities
Stars: ✭ 24 (-97.57%)
Mutual labels:  layout, menu

Duo Navigation Drawer Download Build Status Android Arsenal

This Android library provides an easy way to create an alternative navigation drawer for android. Instead of a drawer that slides over the main content of the Activity, this lets the content slide away and reveal a menu below it.

By default it applies a scaling effect on the content and menu.

AndroidX

If you're still using legacy Android Support libraries you can use v2.0.8. AndroidX is supported by default since v3.0.0.

Demo

Demo CountPages alpha

The demo app is included in the app module in this project.

Getting Started

Prerequisites

You can download a jar from GitHub's releases page.

Or use Gradle:

repositories {
    mavenCentral() // jcenter() works as well because it pulls from Maven Central
}

dependencies {
    compile 'nl.psdcompany:duo-navigation-drawer:3.0.0'
}

Or Maven:

<dependency>
  <groupId>nl.psdcompany</groupId>
  <artifactId>duo-navigation-drawer</artifactId>
  <version>3.0.0</version>
  <type>pom</type>
</dependency>

Installing

1. Add the DuoNavigationDrawer view to your activity

<nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    ... />

2. Add the content view view to your drawer

Add the a content view to your drawer by adding the attribute: app:content to your drawer.

<nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    app:content="@layout/content"
    ... />

or, you can also add a view within the drawer with the tag content.

<nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    ... >
    
    <FrameLayout
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:tag="content"
        ... />

</nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout>

3. Add the menu view view to your drawer

Add the a menu view to your drawer by adding the attribute: app:menu to your drawer.

<nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    app:menu="@layout/menu"
    ... />

or, you can also add a view within the drawer with the tag menu.

<nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    ... >
    
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:tag="menu"
        ... />

</nl.psdcompany.duonavigationdrawer.views.DuoDrawerLayout>

4. Initialize the drawer view

The API of the DuoNavigationDrawer is mostly the same as the original DrawerLayout from the Android design library. Same for DuoDrawerToggle which is a modified version of the ActionBarDrawerToggle to support the DuoDrawerLayout.

DuoDrawerLayout drawerLayout = (DuoDrawerLayout) findViewById(R.id.drawer);
DuoDrawerToggle drawerToggle = new DuoDrawerToggle(this, drawerLayout, toolbar,
        R.string.navigation_drawer_open,
        R.string.navigation_drawer_close);

drawerLayout.setDrawerListener(drawerToggle);
drawerToggle.syncState();

Customization

Using the DuoMenuView

If you want your menu to look like the demo. you should consider using the DuoMenuView For more info using the DuoMenuView click here.

Effects

All values are Float values. The default values are used in the example.

Content scaling effect

The scaling applied on the content when sliding it from left to right.

app:contentScaleClosed="1.0"
app:contentScaleOpen="0.7"

Menu scaling effect

The scaling applied on the menu when sliding the content from left to right.

app:menuScaleClosed="1.1"
app:menuScaleOpen="1.0"

Click to close surface scaling effect

The scaling applied on the click to close surface when the drawer is open.

app:clickToCloseScale="0.7"

Menu alpha effect

The alpha on the menu when sliding the content from left to right.

app:menuAlphaClosed="0.0"
app:menuAlphaOpen="1.0"

Content margin factor

This value is used to calculate how much of the content should be visible when the content is slided to the right. This is calculated with the width of the DuoDrawerLayout when: getWidth * marginFactor. So setting this to 1.0f will slide the content out of the activity. The default is 0.7f.

app:marginFactor="0.7"

Apps using the DuoNavigationDrawer

Feel free to apply your app to the list by sending me an email with a link to your app in the play store.

Developed By

Donations

If you'd like to support DuoNavigationDrawer development, you could make some donations here:

  • Donate

Thank you very much in advance!

License

Copyright 2017 Alexander Pot

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].