Код: Выделить всё
AppBarLayout
[*]
Код: Выделить всё
DrawerLayout
[*]
Код: Выделить всё
NavigationView
во время активности oncreate , я вызываю эту функцию.
Код: Выделить всё
private void edgeToEdgeIfPossible(boolean windowLightStatusBar) {
if (windowLightStatusBar) {
EdgeToEdge.enable(
this,
SystemBarStyle.light(
ContextCompat.getColor(this, android.R.color.transparent),
ContextCompat.getColor(this, android.R.color.transparent)
)
);
} else {
EdgeToEdge.enable(
this,
SystemBarStyle.dark(
ContextCompat.getColor(this, android.R.color.transparent)
)
);
}
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... ndscape-mo