使 statusBar 透明 android

打开 APP_Resources/values/styles.xml 并添加

<item name="android:windowTranslucentStatus">true</item>

在里面

<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> </style> 

部分。