private void mapSharedElement(List<String> names,Map<String,View> sharedElements,View view){
  String transitionName=view.getTransitionName();
  names.add(transitionName);
  sharedElements.put(transitionName,view);
}

private void mapSharedElement ( List < String > names , Map < String , View > sharedElements , View view ) { String transitionName = view . getTransitionName ( ) ; names . add ( transitionName ) ; sharedElements . put ( transitionName , view ) ; }
puts a shared element to transitions and names .
