package com.sunzn.utils.demo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.TextView;

import com.sunzn.utils.library.ColorUtils;
import com.sunzn.utils.library.TimeUtils;

import java.text.ParseException;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        TextView zz = (TextView) findViewById(R.id.tv);

        try {
            long millis = TimeUtils.string2Millis("2017-08-22T16:42:35", "yyyy-MM-dd'T'HH:mm:ss");

            String time = TimeUtils.millis2String(millis, "yyyy-MM-dd'T'HH:mm:ss");

            zz.setText(time + " == " + millis);

            zz.setText(ColorUtils.signColor("%s - 问题","关键词","#FF0000"));

        } catch (ParseException e) {
            e.printStackTrace();
        }

    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.e("sunzn", "MainActivity.onRestart()");
    }
}

@@ -231,25 +231,116 @@
 library.
-TimeUtils
+StringUtils;%0Aimport com.sunzn.utils.library.TimeUtils;%0Aimport com.sunzn.utils.library.port.Connector
 ;%0A%0Aimpor
@@ -366,16 +366,44 @@
 ception;
+%0Aimport java.util.ArrayList;
 %0A%0Apublic
@@ -641,19 +641,8 @@
 z = 
-(TextView) 
 find
@@ -657,16 +657,464 @@
 (R.id.tv
+);%0A%0A        Log.e(%22TimeUtils%22, %22Year = %22 + TimeUtils.getStartOfYear());%0A        Log.e(%22TimeUtils%22, %22Year = %22 + TimeUtils.millis2String(TimeUtils.getStartOfYear(), %22yyyy-MM-dd HH:mm:ss zzzz%22));%0A%0A        Log.e(%22TimeUtils%22, %22=======================================%22);%0A%0A        Log.e(%22TimeUtils%22, %22Year = %22 + TimeUtils.getEndOfYear());%0A        Log.e(%22TimeUtils%22, %22Year = %22 + TimeUtils.millis2String(TimeUtils.getEndOfYear(), %22yyyy-MM-dd HH:mm:ss zzzz%22)
 );%0A%0A    
@@ -1415,14 +1415,16 @@
 %E9%97%AE%E9%A2%98%22,
+ 
 %22%E5%85%B3%E9%94%AE%E8%AF%8D%22,
+ 
 %22#FF
@@ -1510,24 +1510,274 @@
 %0A        %7D%0A%0A
+        ArrayList%3CString%3E data = new ArrayList%3C%3E();%0A%0A        StringUtils.connectString(data, %22;%22, new Connector%3CString%3E() %7B%0A            @Override%0A            public String getString(String s) %7B%0A                return null;%0A            %7D%0A        %7D);%0A%0A
     %7D%0A%0A    @

Update Sample