我用这个作为主题.
@style/WindowTitleBackground
@style/TitleTextColor
@drawable/waterblue
@color/white
使用此背景图像已分配,但文本颜色不会更改.
在清单中我使用这样的.
android:name="com.example"
android:allowBackup="true"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:theme="@style/ThemeSelector">
解决方法:
这对我有用.
@style/myTheme.ActionBar
@drawable/lblue
@style/myTheme.ActionBar.Text
@dimen/app_head_height
@color/white
@dimen/app_head
标签:android,android-titlebar
来源: https://codeday.me/bug/20190728/1565973.html