package com.codebybrian.polygons;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

public class MainActivity extends Activity {

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

        View poly1 = findViewById(R.id.poly1);
        Animation rotate = AnimationUtils.loadAnimation(this, R.anim.clockwise_rotate);
        rotate.setRepeatCount(Animation.INFINITE);
        rotate.setRepeatMode(Animation.RESTART);
//        poly1.startAnimation(rotate);

//        View poly2 = findViewById(R.id.poly2);
//        Animation rotate2 = AnimationUtils.loadAnimation(this, R.anim.counterclockwise_rotate);
//        rotate2.setDuration(1000);
//        rotate2.setRepeatCount(Animation.INFINITE);
//        rotate2.setRepeatMode(Animation.RESTART);
//        poly2.startAnimation(rotate2);
//
//        View poly4 = findViewById(R.id.poly4);
//        Animation rotate4 = AnimationUtils.loadAnimation(this, R.anim.scale_up);
//        rotate4.setDuration(1000);
//        rotate4.setRepeatCount(Animation.INFINITE);
//        rotate4.setRepeatMode(Animation.REVERSE);
//        poly4.startAnimation(rotate4);


    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}

@@ -660,34 +660,32 @@
 ation.RESTART);%0A
-//
         poly1.st
@@ -707,18 +707,16 @@
 tate);%0A%0A
-//
         
@@ -754,18 +754,16 @@
 poly2);%0A
-//
         
@@ -850,18 +850,16 @@
 otate);%0A
-//
         
@@ -877,34 +877,32 @@
 Duration(1000);%0A
-//
         rotate2.
@@ -929,34 +929,32 @@
 tion.INFINITE);%0A
-//
         rotate2.
@@ -987,18 +987,16 @@
 START);%0A
-//
         
@@ -1030,13 +1030,9 @@
 2);%0A
-//%0A//
+%0A
     
@@ -1074,18 +1074,16 @@
 poly4);%0A
-//
         
@@ -1155,18 +1155,16 @@
 le_up);%0A
-//
         
@@ -1190,18 +1190,16 @@
 (1000);%0A
-//
         
@@ -1238,26 +1238,24 @@
 .INFINITE);%0A
-//
         rota
@@ -1292,18 +1292,16 @@
 VERSE);%0A
-//
         

put back the crazy animations