view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
view.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener() {
@Override
public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
return insets;
}
});
ViewCompat.setOnApplyWindowInsetsListener(appBarLayout, new OnApplyWindowInsetsListener() {
@Override
public WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets) {
v.setPadding(0, insets.getStableInsetTop(), 0, 0);
return insets;
}
});
ViewCompat.setOnApplyWindowInsetsListener(navigationView, new OnApplyWindowInsetsListener() {
@Override
public WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets) {
v.setPadding(0, 0, 0, insets.getStableInsetBottom());
return insets;
https://youtu.be/6Djql74drwk
Обсуждают сегодня