When I change visibility to GONE with CoordinatorLayout as parent view, the AppBarLayout already take place, but when I use the LinearLayout, i haven't this problem.
I want to use CoordinatorLayout for the slide of the AppBarLayout when scrolling RecyclerView.