我试图改变活动操作栏的背景颜色和标题颜色,我试过官方教程和一些答案,但没有为我工作,我失踪一些东西。在Android Studio 1.4.1中设置Android工具栏背景和文本颜色
styles.xml
@color/colorPrimary
@color/colorPrimaryDark
@color/colorAccent
false
true
styles.xml(V21)
false
true
true
@android:color/transparent
MainActivity:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:fitsSystemWindows="true"
tools:context=".MainActivity">
android:layout_width="match_parent" android:theme="@style/AppTheme.AppBarOverlay">
android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" />
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />
2015-11-11
Anas