本文介绍了如何更改jetpack compose中的状态栏颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使状态栏颜色透明,如下所示:
how to make status bar color transparent in compose like here:
它有相同的颜色,但有一点阴影.
it has the same color but with a little bit shade.
推荐答案
Google 刚刚创建了一个名为 accompanist
的库.
您可以在这里找到它:https://github.com/google/accompanist
Google has just created a library called accompanist
.
You can find it here: https://github.com/google/accompanist
它包含多个有用的 Jetpack Compose 库,其中包括一个系统 UI 控制器,您可以使用它来更改状态栏颜色.
It contains multiple helpful libraries for Jetpack Compose, among which is a System UI Controller that you can use for changing the status bar color.
文档 - https://google.github.io/accompanist/systemuicontroller/
这篇关于如何更改jetpack compose中的状态栏颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!