Giter VIP home page Giter VIP logo

minavdrawer's Introduction

Navigation Drawer Customisations

Easy to use customisations of standard NavigationDrawer

DoorIn Slide Scroll DoorOut
image image image image

Usage

  • Dependencies

    Step 1. Add the JitPack repository to your build file:

    Add it in your root build.gradle at the end of repositories:

        allprojects {
    	    repositories {
    		    ...
    		    maven { url 'https://jitpack.io' }
    	    }
        }

    Step 2. Add the dependency

        dependencies {
    	    implementation 'com.github.mindinventory:minavdrawer:<X.X.X>'
        }
  • MIDrawerView.kt is the DrawerView component, add it to your xml file for drawer view.

<com.mindinventory.midrawer.MIDrawerView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg_gradient"
    android:fitsSystemWindows="true"
    app:sliderType="doorIn"
    tools:openDrawer="start">
  • Use attribute for the Drawer sliding style from xml.
app:sliderType="doorIn"

// Here, sliderType types are following.

// scroll (For sliding view with content)
// slide (Open a drawer with content sliding with scale and rotation both.)
// doorIn (Open a drawer inside with content sliding with scale only)
// doorOut (Open a drawer outside with content sliding with scale only)
  • Use attribute for the Drawer sliding style from dynamically in kotlin or Java class.
// You can use is dynamically with following content.
drawer_layout.setSliderType(slideType)


// Here, slideType types are following.

// (For sliding view with content)
// MIDrawerView.MI_TYPE_SLIDE_WITH_CONTENT (For scroll)

// (Open a drawer with content sliding with scale and rotation both.)
// MIDrawerView.MI_TYPE_SLIDE (For slide)

// (Open a drawer inside with content sliding with scale only)
// MIDrawerView.MI_TYPE_DOOR_IN (For doorIn)

// (Open a drawer outside with content sliding with scale only)
// MIDrawerView.MI_TYPE_DOOR_OUT (For doorOut)

LICENSE!

MIDrawerView is MIT-licensed.

Let us know!

We’d be really happy if you send us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.

minavdrawer's People

Contributors

akashmi avatar bhavnikdesai avatar dhruvmi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minavdrawer's Issues

how to set drawer open from right side to left?

how to set drawer open from right side to left? i already change the open drawer to "end" but main content still open to the right.. and when im trying to move the indicator like : actionbar?.setHomeAsUpIndicator(Gravity.END) i got error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.