package com.ce.game.myapplication;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.animation.AnimationSet;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.ce.game.myapplication.act.GuideAnimActivity;
import com.ce.game.myapplication.util.DU;
import com.ce.game.myapplication.view.PageRecyclerView;

public class MainActivity extends Activity {

    private TextView tvHello;

    private PageRecyclerView mRecyclerView;
    private RecyclerView.Adapter mAdapter;
    private RecyclerView.LayoutManager mLayoutManager;
    private Context context;
    AnimationSet animationSet;
    /**
     * ATTENTION: This was auto-generated to implement the App Indexing API.
     * See https://g.co/AppIndexing/AndroidStudio for more information.
     */
    int count = 0;

    FrameLayout mContainer;

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

        context = this;

        tvHello = (TextView) findViewById(R.id.hello_tv);
        mContainer = (FrameLayout) findViewById(R.id.container);

        tvHello.setText("Front look !\n\t\t sometimes stay");

        guideToDebugActivity();

    }

    private void guideToDebugActivity() {
//        startActivity(new Intent(context, LockOrOpenAdminSettingActivity.class));
//        startActivity(new Intent(context, CameraResultActivity.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
//        startActivity(new Intent(context, FontTextActivity.class));
//        startActivity(new Intent(context, AnimLeftAndRightActivity.class));
//        startActivity(new Intent(context, HomeActivity.class));
//        startActivity(new Intent(context, UpAndLeftActivity.class));
//        startActivity(new Intent(context, PermissionActivity.class));
//        startActivity(new Intent(context, IndexActivity.class));
//        startActivity(new Intent(context, CheckboxActivity.class));
//        startActivity(new Intent(context, GuideToSettingActivity.class));
//        startActivity(new Intent(context, RippleActivity.class));
//        startActivity(new Intent(context, DecorViewWithColorDrawableActivity.class));
//        startActivity(new Intent(context, LeadActivity.class));
//        startActivity(new Intent(context, CenterHandActivity.class));
        startActivity(new Intent(context, GuideAnimActivity.class));
//        startActivity(new Intent(context, TessActivity.class));
//        startActivity(new Intent(context, SetImageFromWallpaperActivity.class));
//        startActivity(new Intent(context, GoogleAccountActivity.class));
//        startActivity(new Intent(context, RequestPermissionActivity.class));
//        startActivity(new Intent(context, RollingAnimActivity.class));
//        startActivity(new Intent(context, WallpaperActivity.class));
//        startActivity(new Intent(context, NotiAccessActivity.class));
//        startActivity(new Intent(context, ImageViewScrollActivity.class));
//        startActivity(new Intent(context, ViewStubWithAnimActivity.class));
//        startActivity(new Intent(context, CamTestActivity.class));
//        startActivity(new Intent(context, GuideActivity.class));
//        startActivity(new Intent(context, TransparentActivity.class));
//        finish();
    }

    @Override
    public void onStart() {
        super.onStart();

    }

    @Override
    public void onStop() {
        super.onStop();
    }

    public void clickButton2(View view) {
//        startActivity(new Intent(context, GifSplitActivity.class).putExtra(Const.KEY, Const.TYPE_ONE));
        AnimatorU.show(mContainer, AnimatorU.Direction.left);
    }

    public void clickButton1(View view) {
//        startActivity(new Intent(context, GifSplitActivity.class).putExtra(Const.KEY, Const.TYPE_TWO));
        AnimatorU.hide(mContainer, AnimatorU.Direction.right);
//        AnimatorU.show(mContainer,AnimatorU.Direction.right);

    }

    public void clickButton3(View view) {
        AnimatorU.hide(mContainer, AnimatorU.Direction.top);
//        AnimatorU.show(mContainer,AnimatorU.Direction.top);
    }

    public void clickButton4(View view) {
        new AnimationEssential.Builder()
                .setView(mContainer)
                .setDirection(AnimatorU.Direction.left)
                .setEndVisiblity(View.VISIBLE)
                .setEndAction(new Runnable() {
                    @Override
                    public void run() {
                        DU.t(getApplicationContext(), "builder");
                    }})
                .build().start();
    }
}

@@ -1385,20 +1385,23 @@
 ctivity(
+null
 );%0A
-%0A
     %7D%0A%0A 
@@ -1404,22 +1404,21 @@
 %7D%0A%0A    p
-rivate
+ublic
  void gu
@@ -1436,16 +1436,25 @@
 ctivity(
+View view
 ) %7B%0A//  
@@ -3482,32 +3482,33 @@
 inish();%0A    %7D%0A%0A
+%0A
     @Override%0A  
@@ -3555,24 +3555,25 @@
 onStart();%0A%0A
+%0A
     %7D%0A%0A    @
@@ -3849,16 +3849,18 @@
 .left);%0A
+%0A%0A
     %7D%0A%0A 
@@ -4130,24 +4130,60 @@
 on.right);%0A%0A
+//        mPhone.showItemCount(1);%0A%0A
     %7D%0A%0A    p
@@ -4342,16 +4342,52 @@
 n.top);%0A
+//        mPhone.showItemCount(3);%0A%0A
     %7D%0A%0A 
@@ -4815,16 +4815,16 @@
     %7D%7D)%0A
-
         
@@ -4845,20 +4845,57 @@
 ().start();%0A
+%0A//        mPhone.showItemCount(4);%0A%0A
     %7D%0A%7D%0A

comment unimportant activity