package com.aloisandco.beautifuleasysummer;

import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;

import com.aloisandco.beautifuleasysummer.utils.ImageViewUtils;


public class MainActivity extends Activity {

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

    @Override
    public void onWindowFocusChanged(boolean focus) {
        super.onWindowFocusChanged(focus);
        ImageView backgroundView = (ImageView) findViewById(R.id.background);
        ImageView circleView = (ImageView) findViewById(R.id.circle);
        // Make a hole in the backgroundView bitmap of the size of the circleView
        Bitmap backgroundBitmap = ImageViewUtils.createCircleInImageViewFromSizeOfOtherImageView(backgroundView, circleView, getWindow());
        // Set the new bitmap with the hole as the new background bitmap
        backgroundView.setImageBitmap(backgroundBitmap);
    }




}

@@ -125,16 +125,168 @@
 Bundle;%0A
+import android.view.animation.AccelerateDecelerateInterpolator;%0Aimport android.view.animation.Animation;%0Aimport android.view.animation.RotateAnimation;%0A
 import a
@@ -423,16 +423,57 @@
 vity %7B%0A%0A
+    private boolean firstLaunch = true;%0A%0A
     @Ove
@@ -634,16 +634,96 @@
 %0A    %7D%0A%0A
+    @Override%0A    protected void onResume() %7B%0A        super.onResume();%0A%0A    %7D%0A%0A
     @Ove
@@ -825,16 +825,47 @@
 focus);%0A
+        if (firstLaunch) %7B%0A    
         
@@ -934,32 +934,36 @@
 round);%0A        
+  
+  
 ImageView circle
@@ -1004,24 +1004,28 @@
 id.circle);%0A
+    
         // M
@@ -1102,16 +1102,20 @@
         
+   
+ 
 Bitmap b
@@ -1245,16 +1245,20 @@
         
+    
 // Set t
@@ -1322,16 +1322,20 @@
         
+   
+ 
 backgrou
@@ -1379,16 +1379,486 @@
 p);%0A
+%0A
     
-%7D%0A%0A%0A%0A
+        ImageView logoView = (ImageView) findViewById(R.id.logo);%0A            RotateAnimation anim = new RotateAnimation(0f, 360f, logoView.getWidth() / 2, circleView.getHeight());%0A            anim.setInterpolator(new AccelerateDecelerateInterpolator());%0A            anim.setRepeatCount(Animation.INFINITE);%0A            anim.setStartOffset(3000);%0A            anim.setDuration(2000);%0A            logoView.startAnimation(anim);%0A            firstLaunch = false;%0A        %7D%0A    %7D
 %0A%7D%0A

Add logo animation