我正在尝试创建这个界面:
但实际结果是这样的:
![enter image description here](https://istack.dev59.com/DyPxy.webp)
![enter image description here](https://istack.dev59.com/o87Pt.webp)
- 状态栏透明,我们可以看到我的背景图片:OK
- 操作栏不透明:NOK
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- inherit from the material theme -->
<style name="MaterialAppDetailTheme" parent="android:Theme.Material.Light">
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowActionBarOverlay">true</item>
<!-- enable window content transitions -->
<item name="android:windowContentTransitions">true</item>
<!-- specify shared element transitions -->
<item name="android:windowSharedElementEnterTransition">
@transition/change_image_transform</item>
<item name="android:windowSharedElementExitTransition">
@transition/change_image_transform</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
</resources>