// Path: animations/src/main/java/com/tonilopezmr/animations/adapter/SimpleStringRecyclerViewAdapter.java
// public class SimpleStringRecyclerViewAdapter extends RecyclerView.Adapter<SimpleStringRecyclerViewAdapter.ViewHolder>{
// 
//     private List<String> mValues;
// 
//     public SimpleStringRecyclerViewAdapter(List<String> mValues) {
//         this.mValues = mValues;
//     }
// 
//     @Override
//     public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//         View view = LayoutInflater.from(parent.getContext())
//                 .inflate(R.layout.list_item, parent, false);
//         return new ViewHolder(view);
//     }
// 
//     @Override
//     public void onBindViewHolder(ViewHolder holder, int position) {
//         holder.mTextView.setText(mValues.get(position));
//     }
// 
//     @Override
//     public int getItemCount() {
//         return mValues.size();
//     }
// 
//     public static class ViewHolder extends RecyclerView.ViewHolder {
// 
//         public final View mView;
//         public final TextView mTextView;
// 
//         public ViewHolder(View view) {
//             super(view);
//             mView = view;
//             mTextView = (TextView) view.findViewById(android.R.id.text1);
//         }
// 
//         @Override
//         public String toString() {
//             return super.toString() + " '" + mTextView.getText();
//         }
//     }
// }


import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.tonilopezmr.animations.adapter.SimpleStringRecyclerViewAdapter;
import java.util.ArrayList;
import java.util.List;
        fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
//                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
//                        .setAction("Action", null).show();
                startDetailActivity();
            }
        });
    }

    private void startDetailActivity() {
        Intent intent = new Intent(MainActivity.this, DetailActivity.class);
        ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
                this,
                fab,
                "fab_button");
        startActivity(intent, options.toBundle());
    }

    private List<String> getList(){
        List<String> list = new ArrayList<>();
        list.add("Monday");
        list.add("Tuesday");
        list.add("Wednesday");
        list.add("Thursday");
        list.add("Friday");
        list.add("Saturday");
        list.add("Sunday");

// Path: animations/src/main/java/com/tonilopezmr/animations/adapter/SimpleStringRecyclerViewAdapter.java
// public class SimpleStringRecyclerViewAdapter extends RecyclerView.Adapter<SimpleStringRecyclerViewAdapter.ViewHolder>{
// 
//     private List<String> mValues;
// 
//     public SimpleStringRecyclerViewAdapter(List<String> mValues) {
//         this.mValues = mValues;
//     }
// 
//     @Override
//     public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//         View view = LayoutInflater.from(parent.getContext())
//                 .inflate(R.layout.list_item, parent, false);
//         return new ViewHolder(view);
//     }
// 
//     @Override
//     public void onBindViewHolder(ViewHolder holder, int position) {
//         holder.mTextView.setText(mValues.get(position));
//     }
// 
//     @Override
//     public int getItemCount() {
//         return mValues.size();
//     }
// 
//     public static class ViewHolder extends RecyclerView.ViewHolder {
// 
//         public final View mView;
//         public final TextView mTextView;
// 
//         public ViewHolder(View view) {
//             super(view);
//             mView = view;
//             mTextView = (TextView) view.findViewById(android.R.id.text1);
//         }
// 
//         @Override
//         public String toString() {
//             return super.toString() + " '" + mTextView.getText();
//         }
//     }
// }


// Path: animations/src/main/java/com/tonilopezmr/animations/MainActivity.java
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.tonilopezmr.animations.adapter.SimpleStringRecyclerViewAdapter;
import java.util.ArrayList;
import java.util.List;

        fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
//                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
//                        .setAction("Action", null).show();
                startDetailActivity();
            }
        });
    }

    private void startDetailActivity() {
        Intent intent = new Intent(MainActivity.this, DetailActivity.class);
        ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
                this,
                fab,
                "fab_button");
        startActivity(intent, options.toBundle());
    }

    private List<String> getList(){
        List<String> list = new ArrayList<>();
        list.add("Monday");
        list.add("Tuesday");
        list.add("Wednesday");
        list.add("Thursday");
        list.add("Friday");
        list.add("Saturday");
        list.add("Sunday");

        return list;