Transition in navigation drawer android

后端 未结 2 1257
你的背包
你的背包 2021-01-01 00:46

Anyone having idea that how to achieve this type of transition. When we open Navagation drawer full screen is getting animation like this. I also looked at resi

2条回答
  •  佛祖请我去吃肉
    2021-01-01 01:23

    Drawer behavior is a library use Android DrawerLayout Support library as Parent Class [Easy to migrate], that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.

    If current project use Android DrawerLayout Support library and kinda boring with the effect. Then, just change the layout code and calling necessary method for animation/effect.

    Check out github code

    Gradle

    dependencies {
       implementation 'com.infideap.drawerbehavior:drawer-behavior:0.1.5'
    }
    

    if the gradle unable to sync, you may include this line in project level gradle,

    repositories {
     maven{
       url "https://dl.bintray.com/infideap2/Drawer-Behavior"
     }
    }
    

提交回复
热议问题