How to reset the Toolbar position controlled by the CoordinatorLayout?

后端 未结 8 1793
情话喂你
情话喂你 2020-12-04 16:19

The app I\'m working on consists of a Navigation Drawer which is implemented in an Activity. The activity layout is as follows:



        
8条回答
  •  佛祖请我去吃肉
    2020-12-04 17:08

    // Get the reference for appbar from layout
    AppBarLayout appbar = rootView.findViewById(R.id.appbar);
    //boolean expanded, boolean animate
    appbar.setExpanded(true, true);
    

提交回复
热议问题