SlidingRootNav
SlidingRootNav copied to clipboard
Notification Bar isn't hiding when drawer is open
I tried your method. But its also changing the status bar color of main activity permanently.
DragListener dragListener = new DragListener() {
@Override
public void onDrag(float progress) {
progress= .5f;
Window window = getWindow();
window.setStatusBarColor(getResources().getColor(R.color.white));
}
};
new SlidingRootNavBuilder(this)
.withMenuLayout(R.layout.navigation_drawer)
.withToolbarMenuToggle(toolbar)
.addDragListener(dragListener)
.addDragStateListener()
.inject();