how to remove default animation transition when using navigation component in Android?

前端 未结 3 1086
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 08:39

I am using Navigation component, and I have a bottom navigation view in the main activity. when I tap the tab in that bottom navigation view, it seems that there is a fade i

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-06 09:11

    You can add anim file to replace the default animation.

    • res/anim/nav_default_enter_anim.xml
    • res/anim/nav_default_exit_anim.xml
    • res/anim/nav_default_pop_enter_anim.xml
    • res/anim/nav_default_pop_exit_anim.xml
    
    
        
    
    

    [Navigation Component] I can`t change animation from NavigationUI.setupWithNavController()

提交回复
热议问题