1、沉浸式主题
<style name="Theme.Gallery" parent="android:Theme.Light.NoTitleBar.Fullscreen">
<item name="android:windowBackground">@color/black</item>
<item name="android:windowIsTranslucent">true</item>
</style>
1、透明activity主题
<style name="KeepInfoActivityStyle" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
</style>