@Override public void onSharedElementStart(List<String> sharedElementNames, List<View> sharedElements, List<View> sharedElementSnapshots) { host.setExitSharedElementCallback(null); notifyItemChanged(data.getPosition(), HomeGridItemAnimator.STORY_COMMENTS_RETURN); } });
private void openDesignerNewsStory(StoryViewHolder.TransitionData data) { final Intent intent = ActivityHelper.intentTo(Activities.DesignerNews.Story.INSTANCE); intent.putExtra(Activities.DesignerNews.Story.EXTRA_STORY_ID, data.getStory().getId()); ReflowText.addExtras(intent, new ReflowText.ReflowableTextView(data.getTitle())); setGridItemContentTransitions(data.getItemView()); // on return, fade the pocket & comments buttons in host.setExitSharedElementCallback(new SharedElementCallback() { @Override public void onSharedElementStart(List<String> sharedElementNames, List<View> sharedElements, List<View> sharedElementSnapshots) { host.setExitSharedElementCallback(null); notifyItemChanged(data.getPosition(), HomeGridItemAnimator.STORY_COMMENTS_RETURN); } }); final ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(host, data.getSharedElements()); host.startActivity(intent, options.toBundle()); }
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) @Override public void setExitSharedElementCallback(android.app.SharedElementCallback sharedelementcallback0) { mOriginActivity.setExitSharedElementCallback(sharedelementcallback0); }
public static void setExitSharedElementCallback(Activity activity, SharedElementCallback23 callback) { activity.setExitSharedElementCallback(createCallback(callback)); }
public static void setExitSharedElementCallback(Activity activity, SharedElementCallback21 callback) { activity.setExitSharedElementCallback(createCallback(callback)); }
public static void setExitSharedElementCallback(Activity activity, SharedElementCallback21 callback) { activity.setExitSharedElementCallback(createCallback(callback)); }