Slide 55
Slide 55 text
2018.2.8
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
mBinding = FragmentPostArticleBinding.inflate(inflater, container, false);
ViewCompat.setTransitionName(mBinding.imageCover,
getString(R.string.transition_image_cover));
ViewCompat.setTransitionName(mBinding.backgroundView,
getString(R.string.transition_background));
ViewCompat.setTransitionName(mBinding.layoutPoster.getRoot(),
getString(R.string.transition_item_user));
ViewCompat.setTransitionName(mBinding.textTitle,
getString(R.string.transition_text_title));
ViewCompat.setTransitionName(mBinding.textSourceMedia,
getString(R.string.transition_item_source_media));
ViewCompat.setTransitionName(mBinding.reaction,
getString(R.string.transition_item_reactions));
return mBinding.getRoot();
}
࣮ͷղઆ Article
PostArticleFragment
TransitionपΓͷίʔυ