Cleaning up the standardSharedAnimation() method. Removed unused and unnecessary variables. Moved the setting of the transition name for the fab view to where it is set in the constructor, as this value must not change. Also move setting the image view transition name to the onCreateViewHolder() method as the transition name does not change when the data for an item in the adapter changes.
Cleaned up the slideAndSharedAnimation() method to remove unused variables.