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

SystemBarTint是两年以前的一个开源库,现在我们依然可以用它很方便的给应用加上。

时间:2016-05-19 21:26:20      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

// 4.4及以上版本开启
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            setTranslucentStatus(true);
        }

        SystemBarTintManager tintManager = new SystemBarTintManager(this);
        tintManager.setStatusBarTintEnabled(true);
        tintManager.setNavigationBarTintEnabled(true);

        // 自定义颜色
        tintManager.setTintColor(Color.parseColor("#24b7a4"));

 

SystemBarTint是两年以前的一个开源库,现在我们依然可以用它很方便的给应用加上。

标签:

原文地址:http://www.cnblogs.com/wjhblogs/p/5509939.html

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