@@ -0,0 +1,1429 @@
+package br.com.sailboat.canoe.helper;%0A%0Aimport android.support.design.widget.AppBarLayout;%0Aimport android.support.design.widget.FloatingActionButton;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.support.v7.widget.Toolbar;%0A%0Apublic class ScrollHelper %7B%0A%0A    public static void disableScroll(Toolbar toolbar) %7B%0A        AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) toolbar.getLayoutParams();%0A        params.setScrollFlags(0);%0A    %7D%0A%0A    public static void enableScroll(Toolbar toolbar) %7B%0A        AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) toolbar.getLayoutParams();%0A        params.setScrollFlags(AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL%0A                %7C AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS);%0A    %7D%0A%0A    public static void hideFabWhenScrolling(RecyclerView recycler, final FloatingActionButton fab) %7B%0A        recycler.addOnScrollListener(new RecyclerView.OnScrollListener() %7B%0A            @Override%0A            public void onScrolled(RecyclerView recyclerView, int dx, int dy) %7B%0A                if (dy %3E 0 && fab.isShown()) %7B%0A                    fab.hide();%0A                %7D else %7B%0A                    fab.show();%0A                %7D%0A            %7D%0A%0A            @Override%0A            public void onScrollStateChanged(RecyclerView recyclerView, int newState) %7B%0A                super.onScrollStateChanged(recyclerView, newState);%0A            %7D%0A        %7D);%0A    %7D%0A%0A%7D%0A

Add ScrollHelper