Translucent/Transparent status bar + CoordinatorLayout + Toolbar + Fragment
问题 I have following setup: I'm using AppCompat MainActivity, that holds a fragment and has a toolbar, that's hiding when scrolling down Fragment with RecyclerView all views that should fit the screen have the according android:fitsSystemWindows="true" in the xml layout The problem is, I can't get the statusbar transparent in this case. What I do is following: Create the activity and call setContent Then I try to adjust the activity to programmatically get a translucent toolbar like following: