与轻主题资源合并后,导航栏的颜色发生了变化。如何在与轻主题资源合并后更改导航栏的颜色?
发布于 2017-04-13 22:51:35
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary" <-------- check the value of this
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:tabIndicatorColor="@android:color/white"
app:tabGravity="fill"
app:tabMode="fixed" />此颜色应定义导航栏的颜色。
<item name="colorPrimaryDark">#a5d6f7</item> <------- light bluehttps://stackoverflow.com/questions/43389916
复制相似问题