<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[u011108083的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/u011108083</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; u011108083]]></copyright><item><title><![CDATA[关于时间获取或转换]]></title><link>https://blog.csdn.net/u011108083/article/details/111321070</link><guid>https://blog.csdn.net/u011108083/article/details/111321070</guid><author>u011108083</author><pubDate>Thu, 17 Dec 2020 17:58:10 +0800</pubDate><description><![CDATA[总结下关于时间获取或转换的工具类，基本用到的差不多就这些了
public class TimeUtil {
    /**
     * 获取如今时间
     *
     * @return返回字符串格式 yyyy-MM-dd HH:mm:ss
     */
    public static String getStringDate() {
        Date currentTime = new Date();
        SimpleDateFormat formatter = new ]]></description><category></category></item><item><title><![CDATA[Android沉浸式状态栏高度设置]]></title><link>https://blog.csdn.net/u011108083/article/details/111320895</link><guid>https://blog.csdn.net/u011108083/article/details/111320895</guid><author>u011108083</author><pubDate>Thu, 17 Dec 2020 17:49:25 +0800</pubDate><description><![CDATA[Android沉浸式状态栏高度设置
if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.KITKAT) {
            Window window = getWindow();
            window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            int statusBarHeight = getStatusBarHeight(t]]></description><category></category></item><item><title><![CDATA[安卓代码设置状态栏颜色及字体黑白色]]></title><link>https://blog.csdn.net/u011108083/article/details/111320561</link><guid>https://blog.csdn.net/u011108083/article/details/111320561</guid><author>u011108083</author><pubDate>Thu, 17 Dec 2020 17:41:33 +0800</pubDate><description><![CDATA[安卓代码设置状态栏颜色及黑白色
直接上代码：
protected void setDarkStatusWhite(boolean bDark) {
if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
View decorView = getWindow().getDecorView();
getWindow().setStatusBarColor(getResources().getColor(android.R.color.white));//]]></description><category></category></item></channel></rss>