Android學習筆記---Material Design設計理念

具體本身百度,我直接貼用法咯,android

styles.xml app

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>

    <!--文本的默認顏色-->
    <item name="android:textColorPrimary">#FF0000</item>

    <!--輸入框  等  未選中的顏色  也能夠用來修改 返回箭頭 和 更多的顏色 -->
    <item name="colorControlNormal">#FFFF00</item>


    <item name="android:windowBackground">@color/colorAccent</item>

    <item name="android:navigationBarColor">#FF0000</item>

</style>


    <style name="toolbarTheme" parent="ThemeOverlay.AppCompat.ActionBar">
        <!--修改 返回箭頭 和 更多的顏色 -->
        <item name="colorControlNormal">#FF00FF</item>
        <!--菜單文字顏色 和 標題的默認顏色-->
        <item name="android:textColorPrimary">#FFFF00</item>
    </style>


</resources>
相關文章
相關標籤/搜索