admin管理员组

文章数量:1122976

In the image attached, list view scroll over TitleBar if compile SDK and target SDK is 35. How to limit it under TitleBar. But if i use SDK 34, then its OK.

Used below code but no luck

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
        activity.getWindow().setAttributes(new WindowManager.LayoutParams(WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER));
    }

In the image attached, list view scroll over TitleBar if compile SDK and target SDK is 35. How to limit it under TitleBar. But if i use SDK 34, then its OK.

Used below code but no luck

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
        activity.getWindow().setAttributes(new WindowManager.LayoutParams(WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER));
    }
Share Improve this question asked Nov 21, 2024 at 8:34 Android WorldAndroid World 156 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

you need to support Window insets, some article also HERE, or at least use windowOptOutEdgeToEdgeEnforcement flag

本文标签: Unable to fix layout issue in android SDK 35Stack Overflow