最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ComponentActivity.enableEdgeToEdge extension doesn't modify status bar background color for android Api 35 - Stack Overf

programmeradmin1浏览0评论

The ComponentActivity.enableEdgeToEdge extension works great for changing the background of the status bar, but doesn't work for compileSdkVersion == 35. It is always transparent. Why does this happen and how to fix it?

But code for changing status bar indicators color works as before

fun Activity.setupStatusBarIndicatorsColor(isLightStatusBar: Boolean) { WindowCompat.getInsetsController(window, window.decorView).isAppearanceLightStatusBars = !isLightStatusBar && isLightMode }

I have read offical documentation and can't find any example

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论