0
我已经检查了所有的解决方案,但没有在我的案例中工作。我不知道为什么状态栏的颜色会发生变化(这是默认的灰色) 在我的风格定义:不能更改状态栏上的主题颜色android/xamarin
<style name="Base.Theme.DesignDemo" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#2e662f</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">#4CAEE3</item>
</style>
在AndroidManifest:
<application android:label="App1" android:theme="@style/Theme.DesignDemo" android:icon="@drawable/icon">
以及活动我里面打电话是这样的:
[Activity(Label = "", MainLauncher = true, Icon = "@drawable/icon")]
我也尝试过这样的事情:
[Activity(Label = "", Theme = "@style/Theme.DesignDemo",MainLauncher = true, Icon = "@drawable/icon")]