Navigation graph with multiple top level destinations

前端 未结 4 1052
醉话见心
醉话见心 2020-12-09 10:40

I am implementing an android app (in Kotlin, but that is not relevant to the Problem) in my free time and I try to use android jetpack and new libraries. I have a single Act

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 11:06

    setOf and setDrawerLayout are depricated you should use

    AppBarConfiguration configuration = new AppBarConfiguration.Builder(R.id.defaultFragment, R.id.firstFragment,R.id.secondFragment).setOpenableLayout(drawerLayout).build();

提交回复
热议问题