package com.carlosdelachica.sample;

import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;

import com.carlosdelachica.easyrecycleradapters.sample.R;

import butterknife.ButterKnife;
import butterknife.InjectView;

public class MainActivity extends ActionBarActivity{

    @InjectView(R.id.toolbar)
    Toolbar toolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.inject(this);
        initToolbar();
        if (savedInstanceState == null) {
            navigateToFragment(new MainFragment());
        }
    }

    private void navigateToFragment(Fragment fragment) {
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.container, fragment)
                .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
                .commit();
    }

    private void initToolbar() {
        if (toolbar != null) {
            setSupportActionBar(toolbar);
            getSupportActionBar().setDisplayHomeAsUpEnabled(false);
        }
        ColorStateList myColorStateList = new ColorStateList(
                new int[][]{
                        new int[]{android.R.attr.state_pressed}, //1
                        new int[]{android.R.attr.state_focused}, //2
                        new int[]{android.R.attr.state_focused, android.R.attr.state_pressed} //3
                },
                new int[] {
                        Color.RED, //1
                        Color.GREEN, //2
                        Color.BLUE //3
                }
        );
        new RippleDrawable(myColorStateList, null, new ColorDrawable(getResources().getColor(R.color.accentColor)));
    }


    @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) {
        switch (item.getItemId()) {
            case R.id.standalone:
                navigateToFragment(new StandaloneFragment());
                return true;
            case R.id.BaseRecyclerFragment:
                navigateToFragment(new MainFragment());
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }

}

@@ -34,179 +34,8 @@
 e;%0A%0A
-import android.content.res.ColorStateList;%0Aimport android.graphics.Color;%0Aimport android.graphics.drawable.ColorDrawable;%0Aimport android.graphics.drawable.RippleDrawable;%0A
 impo
@@ -1314,647 +1314,8 @@
   %7D%0A
-        ColorStateList myColorStateList = new ColorStateList(%0A                new int%5B%5D%5B%5D%7B%0A                        new int%5B%5D%7Bandroid.R.attr.state_pressed%7D, //1%0A                        new int%5B%5D%7Bandroid.R.attr.state_focused%7D, //2%0A                        new int%5B%5D%7Bandroid.R.attr.state_focused, android.R.attr.state_pressed%7D //3%0A                %7D,%0A                new int%5B%5D %7B%0A                        Color.RED, //1%0A                        Color.GREEN, //2%0A                        Color.BLUE //3%0A                %7D%0A        );%0A        new RippleDrawable(myColorStateList, null, new ColorDrawable(getResources().getColor(R.color.accentColor)));%0A
     

Remove unused code