package com.highway.study;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.highway.study.coustomview.loadingview.CoustomActivity;
import com.highway.study.takephoto.TakePhotoActivity;
import com.highway.study.ui.viewflipper.ViewFlipperTestActivity;
import com.highway.study.ui.viewflipper.datepicker.DatePickerActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.viewflipper).setOnClickListener(this);
        findViewById(R.id.takephoto).setOnClickListener(this);
        findViewById(R.id.datepick).setOnClickListener(this);
        findViewById(R.id.coustom).setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.viewflipper:
                startActivity(new Intent(this, ViewFlipperTestActivity.class));
                break;
            case R.id.takephoto:
                startActivity(new Intent(this, TakePhotoActivity.class));
                break;
            case R.id.datepick:
                startActivity(new Intent(this, DatePickerActivity.class));
                break;
            case R.id.coustom:
                startActivity(new Intent(this, CoustomActivity.class));
        }
    }
}

@@ -52,16 +52,72 @@
 Intent;%0A
+import android.graphics.Color;%0Aimport android.os.Build;%0A
 import a
@@ -153,24 +153,24 @@
 atActivity;%0A
-
 import andro
@@ -550,16 +550,17 @@
 Listener
+ 
 %7B%0A%0A    @
@@ -1482,16 +1482,16 @@
 oustom:%0A
-
         
@@ -1569,11 +1569,1646 @@
  %7D%0A    %7D
+%0A%0A    @Override%0A    public void onWindowFocusChanged(boolean hasFocus) %7B%0A        super.onWindowFocusChanged(hasFocus);%0A        if (hasFocus && Build.VERSION.SDK_INT %3E= 19) %7B%0A            //  %E7%9C%9F%E6%AD%A3%E7%9A%84%E6%B2%89%E6%B5%B8%E5%BC%8F%E4%BD%93%E9%AA%8C%EF%BC%8C%E9%80%82%E7%94%A8%E4%BA%8ESDK%3E=19%EF%BC%8C%E5%8F%AF%E4%BB%A5%E6%8B%89%E5%87%BA%E5%AF%BC%E8%88%AA%E6%A0%8F%0A            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE%0A                    %7C View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION%0A                    %7C View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN%0A                    %7C View.SYSTEM_UI_FLAG_HIDE_NAVIGATION%0A                    %7C View.SYSTEM_UI_FLAG_FULLSCREEN%0A                    %7C View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY%0A            );%0A%0A            //   %E5%AE%9E%E7%8E%B0%E5%85%A8%E5%B1%8F%EF%BC%8C%E5%8E%BB%E6%8E%89%E7%B3%BB%E7%BB%9F%E6%A0%87%E9%A2%98%E6%A0%8F%EF%BC%8C%E9%80%82%E5%90%88%E4%BA%8E%E6%B8%B8%E6%88%8F%E3%80%81%E7%94%B5%E5%BD%B1%E7%AD%89%E6%B2%89%E6%B5%B8%E5%BC%8F%E4%BD%93%E9%AA%8C%0A//            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);%0A%0A%0A            //%E6%8A%8A%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E6%94%BE%E5%87%BA%E6%9D%A5%0A//            if (Build.VERSION.SDK_INT %3E= 21) %7B%0A//                getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN%0A//                        %7C View.SYSTEM_UI_FLAG_LAYOUT_STABLE);%0A//                getWindow().setStatusBarColor(Color.TRANSPARENT);%0A//            %7D%0A            //%E5%8F%A6%E5%A4%96%E4%B8%80%E7%A7%8D%E6%96%B9%E5%BC%8F%0A//            if (Build.VERSION.SDK_INT %3E= 21) %7B%0A//                getWindow().getDecorView().setSystemUiVisibility(%0A//                        View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION%0A//                                %7C View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN%0A//                                %7C View.SYSTEM_UI_FLAG_LAYOUT_STABLE%0A//                );%0A//                getWindow().setStatusBarColor(Color.TRANSPARENT);%0A//                getWindow().setNavigationBarColor(Color.TRANSPARENT);%0A//            %7D%0A        %7D%0A    %7D
 %0A%7D%0A

实现全屏，去掉系统标题栏