PlaceHolderView icon indicating copy to clipboard operation
PlaceHolderView copied to clipboard

How to - Shared Element Activity Transition

Open subh2020 opened this issue 6 years ago • 0 comments

Hi I want to implement "Shared Element Activity Transition" when user clicks an image view from PlaceViewHolder Gallery example.

Is there any example available on how to implement "Shared Element Activity Transition" from OnClick for an view. It require's the concerned view (e.g. ImageView) e.g in file ImageTypeSmall.java for onLongClick() How to get the view ImageView with id "imageView" To be used as: ActivityOptionsCompat options = ActivityOptionsCompat. makeSceneTransitionAnimation(this, (View)imageView, "transPhoto"); 1st parameter is Activity. 2nd parameter is Shared Element. third parameter is Shared Element Name.

subh2020 avatar Mar 11 '18 11:03 subh2020