ActionBar Apptheme Textcolor问题

时间:2016-11-29 12:21:33

标签: android android-actionbar

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

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

这是项目样式.xml:         @色/ colorPrimary         @色/ colorPrimaryDark         @颜色/ 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" />

此库项目styles.xml:                  @色/ colorPrimary         @色/ colorPrimaryDark         @色/ colorAccent         @风格/ 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添加到另一个项目中的依赖项中

0 个答案:

没有答案