为什么我的状态栏有这种颜色?我需要的颜色与工具栏相同(蓝色)状态栏颜色错误
styles.xml
<style name="MFB" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionModeOverlay">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
settingsactivity.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar" />
<FrameLayout
android:id="@+id/content_frame"
android:layout_below="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
在主要活动及其工作好吧,看:
我不知道什么是错在这里......我所期望的是其他职位的答案,但同样我得到了白状态栏:/
谢谢:)和遗憾,如果它是一个noob问题
编辑
Toolbar.xml:
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
注意:在使用 IM
"com.android.support:appcompat-v7:23.4.0"
"com.android.support:design:23.4.0"
第一的所有指定什么是您的设备版本,并张贴'工具栏'布局文件如何申请? – Ironman