@NonNull
        private ItemHolderInfo getItemHolderInfo(MyViewHolder viewHolder, ColorTextInfo info) {
            final MyViewHolder myHolder = viewHolder;
            final int bgColor = ((ColorDrawable) myHolder.container.getBackground()).getColor();
            info.color = bgColor;
            info.text = (String) myHolder.textView.getText();
            return info;
        }
Custom ItemAnimator that handles change animations. The default animator simple cross-
fades the old and new ViewHolder items. Our custom animation re-uses the same
ViewHolder and animates the contents of the views that it contains. The animation
consists of a color fade through black and a text rotation. The animation also handles
interruption, when a new change event happens on an item that is currently being
animated.
RecyclerViewAnimations/app/src/main/java/examples/android/com/recyclerviewanimations/MainActivity.java