码迷,mamicode.com
首页 > 其他好文 > 详细

设置状态栏以及全局的颜色

时间:2017-09-10 21:51:10      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:分享   背景   pre   width   编辑   owb   src   log   logs   

技术分享

一.在Application中设置样式:

     android:theme="@style/AppTheme"

<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/colorPrimaryDark</item>
<!-- 设置全局背景色-->
<item name="android:windowBackground">@color/colorAccent</item>
</style>

 

设置状态栏以及全局的颜色

标签:分享   背景   pre   width   编辑   owb   src   log   logs   

原文地址:http://www.cnblogs.com/huihuizhang/p/7502144.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!