https://github.com/mindinventory/minavdrawer
Easy to add different animations into standard NavigationDrawer.
https://github.com/mindinventory/minavdrawer
android android11-support android12-support androidx-support animations customisations customization drawer drawer-android drawer-animation drawerlayout easy-to-use kotlin navigation-drawer
Last synced: 8 months ago
JSON representation
Easy to add different animations into standard NavigationDrawer.
- Host: GitHub
- URL: https://github.com/mindinventory/minavdrawer
- Owner: Mindinventory
- License: mit
- Created: 2018-05-02T09:21:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-01T11:40:58.000Z (almost 5 years ago)
- Last Synced: 2025-04-05T07:22:35.524Z (about 1 year ago)
- Topics: android, android11-support, android12-support, androidx-support, animations, customisations, customization, drawer, drawer-android, drawer-animation, drawerlayout, easy-to-use, kotlin, navigation-drawer
- Language: Kotlin
- Homepage: https://www.mindinventory.com/android-application-development.php
- Size: 15.7 MB
- Stars: 107
- Watchers: 10
- Forks: 62
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Navigation Drawer Customisations [](https://jitpack.io/#mindinventory/minavdrawer)
Easy to use customisations of standard NavigationDrawer
| DoorIn | Slide | Scroll | DoorOut |
| --------------------------- | -------------------------- | -------------------------- | -------------------------- |
|  |  | | |
# Usage
* Dependencies
Step 1. Add the JitPack repository to your build file:
Add it in your root build.gradle at the end of repositories:
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
Step 2. Add the dependency
```groovy
dependencies {
implementation 'com.github.mindinventory:minavdrawer:'
}
```
* MIDrawerView.kt is the DrawerView component, add it to your xml file for drawer view.
```groovy
```
* Use attribute for the Drawer sliding style from xml.
```groovy
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.
```groovy
// 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](https://github.com/mindinventory1/minavdrawer/blob/master/LICENSE).
# 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 sales@mindinventory.com And do let us know if you have any questions or suggestion regarding our work.