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
1 Answer
Reset to default 0you 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
版权声明:本文标题:Unable to fix layout issue in android SDK 35 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736538554a1944354.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论