Mein Hauptthema auf Theme.AppCompat.Light
basiert wie folgt:die 'Zurück' Pfeil Farbe in Actionmode Customizing mit AppCompat-v7
<style name="core" parent="Theme.AppCompat.Light" >
<!-- Material, Yo!-->
<item name="colorPrimary">@color/theme_main_color</item>
<item name="colorPrimaryDark">@color/deep_purple</item>
<item name="colorAccent">@color/theme_accent_color</item>
<item name="android:navigationBarColor" tools:ignore="NewApi">?attr/colorPrimary</item>
<!-- Toolbar -->
<item name="theme">@style/my_toolbar_theme</item>
<item name="drawerArrowStyle">@style/my_drawer_arrow</item>
<!-- Actionbar -->
<item name="android:actionBarDivider">@null</item>
<item name="android:actionBarTabStyle">@null</item>
<item name="android:actionBarTabBarStyle">@null</item>
<!-- Contextual Actionbar -->
<item name="windowActionModeOverlay">true</item>
<item name="actionModeBackground">?attr/colorAccent</item>
<item name="actionModeStyle">@style/my_actionmode_style</item>
</style>
<style name="my_drawer_arrow" parent="Widget.AppCompat.DrawerArrowToggle" >
<item name="spinBars">true</item>
<item name="color">@color/theme_accent_color</item>
</style>
<style name="my_toolbar_style">
<item name="android:id">@id/toolbar</item>
<item name="android:minHeight">?attr/actionBarSize</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">match_parent</item>
<item name="android:background">?attr/colorPrimary</item>
<item name="android:elevation" tools:ignore="NewApi">5dp</item>
</style>
<style name="my_actionmode_style" parent="Widget.AppCompat.Light.ActionMode.Inverse" >
<item name="titleTextStyle">@style/my_actionmode_title_style</item>
<item name="subtitleTextStyle">@style/my_actionmode_subtitle_style</item>
</style>
<style name="my_toolbar_style.gradient">
<item name="android:background">@drawable/ab_gradient_bg</item>
</style>
<style name="my_toolbar_theme" parent="ThemeOverlay.AppCompat.Dark.ActionBar" >
<!-- Customize the toolbar here -->
</style>
<style name="my_actionmode_title_style" parent="TextAppearance.AppCompat.Widget.ActionMode.Title">
<item name="android:textColor">@color/std_white</item>
</style>
<style name="my_actionmode_subtitle_style" parent="TextAppearance.AppCompat.Widget.ActionMode.Subtitle">
<item name="android:textColor">@android:color/white</item>
</style>
In actionmode Ich weiß Titel sehen möchten/Untertitel mit einem weißen Pfeil zurück. Ich konnte die Textfarbe für Titel und Untertitel auf Weiß setzen, aber der Zurück-Pfeil bleibt schwarz. Dieses Problem tritt nur an Orten auf, an denen ich die SupportAction-Leiste und nicht die Symbolleiste verwende (der Zurück-Pfeil in der Symbolleiste ist weiß).
Dies ist meine Symbolleiste in ActionMode.
Dies ist ActionBar in ActionMode. Gleiches Telefon, gleiche App, gleiche Themen, nur eine andere Aktivität.
Ich kann nichts in den Themen finden, die diese Farbe bestimmen würde. Laut der Quelle ist das Symbol @drawable/abc_ic_ab_back_mtrl_am_alpha
, was weiß ist, also muss etwas getönt werden. Woher kommt diese schwarze Farbe?
Versuchen Sie folgendes: http://stackoverflow.com/questions/27861102/actionbardrawertoggle-v7-arrow-color – Quanturium