@Override
            public void onClick(View v) {
                switch (mRadioGroup.getCheckedRadioButtonId()) {
                    case R.id.deleteRB:
                        deleteItem(v);
                        break;
                    case R.id.addRB:
                        addItem(v);
                        break;
                    case R.id.changeRB:
                        changeItem(v);
                        break;
                }
            }
Custom adapter that supplies view holders to the RecyclerView. Our view holders
contain a simple LinearLayout (with a background color) and a TextView (displaying
the value of the container's bg color).
RecyclerViewAnimations/app/src/main/java/examples/android/com/recyclerviewanimations/MainActivity.java