Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.mindinventory:minavdrawer:1.2.2'
}
dependencies {
implementation("com.github.mindinventory:minavdrawer:1.2.2")
}
<dependency>
<groupId>com.github.mindinventory</groupId>
<artifactId>minavdrawer</artifactId>
<version>1.2.2</version>
</dependency>
libraryDependencies += "com.github.mindinventory" % "minavdrawer" % "1.2.2"
:dependencies [[com.github.mindinventory/minavdrawer "1.2.2"]]
Easy to use customisations of standard NavigationDrawer
| DoorIn | Slide | Scroll | DoorOut |
| --------------------------- | -------------------------- | -------------------------- | -------------------------- |
| |
|
|
|
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">
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)
// 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)
MIDrawerView is MIT-licensed.
We’d be really happy if you send us links to your projects where you use our component. Just send an email to sales@mindinventory.com And do let us know if you have any questions or suggestion regarding our work.