karonl
V2EX  ›  问与答

关于 Android 的 AppCompat 有个问题请教

  •  
  •   karonl · Nov 28, 2014 · 2931 views
    This topic created in 4187 days ago, the information mentioned may be changed or developed.
    I'm trying to set colorAccent to my project but when i build to device the color doesn't change.

    The selector color still in black color.

    http://i.stack.imgur.com/xLJ9w.png

    This's my styles.

    <resources>
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/app_primary_color</item>
    <item name="colorPrimaryDark">@color/app_primary_dark_color</item>
    <item name="colorAccent">@color/red</item>
    </style>
    </resources>
    What's wrong with my code or i miss something ?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:25 · PVG 20:25 · LAX 05:25 · JFK 08:25
    ♥ Do have faith in what you're doing.