package ninja.lucas.blurrr;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.support.v7.app.*;
import android.view.View;
import android.view.animation.OvershootInterpolator;
import android.widget.ImageView;

import com.fivehundredpx.android.blur.BlurringView;

import java.util.Random;

public class MainActivity extends Activity {

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

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

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}

@@ -51,16 +51,44 @@
 tivity;%0A
+import android.media.Image;%0A
 import a
@@ -105,16 +105,16 @@
 Bundle;%0A
-
 import a
@@ -575,16 +575,25 @@
 extends 
+ActionBar
 Activity
@@ -759,16 +759,1614 @@
 _main);%0A
+        mBlurringView = (BlurringView) findViewById(R.id.blurring_view);%0A        View blurredView = findViewById(R.id.blurring_view);%0A%0A        mBlurringView.setBlurredView(blurredView);%0A%0A        mImageViews%5B0%5D = (ImageView) findViewById(R.id.image0);%0A        mImageViews%5B1%5D = (ImageView) findViewById(R.id.image1);%0A        mImageViews%5B2%5D = (ImageView) findViewById(R.id.image2);%0A        mImageViews%5B3%5D = (ImageView) findViewById(R.id.image3);%0A        mImageViews%5B4%5D = (ImageView) findViewById(R.id.image4);%0A        mImageViews%5B5%5D = (ImageView) findViewById(R.id.image5);%0A        mImageViews%5B6%5D = (ImageView) findViewById(R.id.image6);%0A        mImageViews%5B7%5D = (ImageView) findViewById(R.id.image7);%0A        mImageViews%5B9%5D = (ImageView) findViewById(R.id.image8);%0A    %7D%0A%0A    private BlurringView mBlurringView;%0A%0A    private int%5B%5D mImageIds = %7B%0A        R.drawable.p0, R.drawable.p1, R.drawable.p2, R.drawable.p3, R.drawable.p4, R.drawable.p5, R.drawable.p6, R.drawable.p7, R.drawable.p8, R.drawable.p9%0A    %7D;%0A%0A    private ImageView%5B%5D mImageViews = new ImageView%5B9%5D;%0A    private int mStartIndex;%0A%0A    public void shuffle(View view) %7B%0A%0A    %7D%0A%0A    private ValueAnimator.AnimatorUpdateListener listener = new ValueAnimator.AnimatorUpdateListener() %7B%0A        @Override%0A        public void onAnimationUpdate(ValueAnimator animation) %7B%0A            mBlurringView.invalidate();%0A        %7D%0A    %7D;%0A%0A//    public void shift(View view) %7B%0A//        if (!mShifted) %7B%0A//            for (ImageView imageView : mImageViews) %7B%0A//                ObjectAnimator tx = ObjectAnimator.ofFloat()%0A//            %7D%0A//        %7D%0A//
     %7D%0A%0A 

Update MainActivity