@NonNull
        @Override
        public ItemHolderInfo recordPreLayoutInformation(RecyclerView.State state,
                RecyclerView.ViewHolder viewHolder, int changeFlags, List<Object> payloads) {
            ColorTextInfo info = (ColorTextInfo) super.recordPreLayoutInformation(state, viewHolder,
                    changeFlags, payloads);
            return getItemHolderInfo((MyViewHolder) viewHolder, 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