我想在 Android 4.4 的应用程序中创建一个透明的状态栏。我怎么做?
我累了:
<style name="AppTheme" parent="@style/Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/skipPrimary</item>
<item name="colorPrimaryDark">@color/skipPrimary</item>
<item name="colorAccent">@color/skipPrimary</item>
</style>
在清单中:
<application
android:name=".App"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme" >
并在活动中:
<activity
android:name=".activities.StartActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="adjustResize|stateHidden" />