Android-Support-Symbolleiste colorControlNormal Farbe

Ich würde gerne meine spinner drop-down Farbe weiß, während die anderen Elemente in meinem theme die Standard-Farbe. Hier ist die situation:

Android-Support-Symbolleiste colorControlNormal Farbe

<android.support.v7.widget.Toolbar
        android:layout_height="@dimen/action_bar_height"
        android:layout_width="match_parent"
        android:minHeight="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:theme="@style/ToolbarTheme.Base"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Light">

        <Spinner
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"/>

</android.support.v7.widget.Toolbar>

Und der Stil ist:

<!-- My base app theme -->
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/primary</item>
    <item name="colorPrimaryDark">@color/primary_dark</item>
    <item name="colorAccent">@color/theme_tint</item>

    <!-- <item name="colorControlNormal">#FFFFFF</item> -->

    <item name="android:windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:typeface">sans</item>
    <item name="android:windowBackground">@color/background_primary</item>
</style>

<!-- My Toolbar theme -->
<style name="ToolbarTheme.Base" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
    <item name="colorControlNormal">#FFFFFF</item>
</style>

Wenn ich war zu <item name="colorControlNormal">#FFFFFF</item> im App-Designs (auskommentiert oben), dann wird der spinner drop-down tun, weiß ABER die checkbox wird auch wieder weiß. Also, wie bekomme ich den spinner NUR, um zu gehen weiß?

InformationsquelleAutor der Frage James Cross | 2014-10-23

Schreibe einen Kommentar