我已经创建了库项目,作为SDK集成到另一个项目中,Action Bar Textcolor需要根据appthem进行更改,在我的SDK中自动执行colorprimary .

我的问题是项目不会改变基于apothem的文本颜色,例如我的collor#8c0bfd动作栏文本颜色主题将是白色但它将显示黑色

这是项目样式.xml:@ color / colorPrimary @ color / colorPrimaryDark @ color / colorAccent

</style>


<style name="AppTheme.Actionbar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>


<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />



<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

这个Library Project styles.xml:@ color / colorPrimary @ color / colorPrimaryDark @ color / colorAccent @ style / AppTheme.Widget.ActionButton

</style>

<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar">

</style>


<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light">

</style>

<style name="Divider">
    <item name="android:gravity">center</item>
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">0.5dp</item>
    <item name="android:background">@color/divider</item>
    <item name="android:layout_marginTop">@dimen/marigintop</item>
    <item name="android:layout_marginBottom">@dimen/mariginbottom</item>
    <item name="android:paddingLeft">20dp</item>
    <item name="android:paddingRight">20dp</item>
</style>
<style name="AppTheme.Widget.ActionButton" parent="@style/Widget.AppCompat.ActionButton">
    <item name="textAllCaps">false</item>
</style>

只是将我的库项目推送到jcenter并将其作为idk添加到另一个项目中的依赖项中