CoordinatorLayout 裡如果有 RecyclerView,但是不想将 RecyclerView 作為依賴控件 ,可以這麼設定
recyclerView.setNestedScrollingEnabled(false);
CoordinatorLayout 在代碼裡控制 AppBarLayout 伸展和收起,appBarLayout.setExpanded(boolean expanded, boolean animate);
CoordinatorLayout 裡如果有 RecyclerView,但是不想将 RecyclerView 作為依賴控件 ,可以這麼設定
recyclerView.setNestedScrollingEnabled(false);
CoordinatorLayout 在代碼裡控制 AppBarLayout 伸展和收起,appBarLayout.setExpanded(boolean expanded, boolean animate);