@Override public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) { super.onMapSharedElements(names, sharedElements); if (isReturn) { ViewGroup vg = (ViewGroup) rv.findViewWithTag(returnIndex); if (vg != null) { View view = vg.findViewById(R.id.ivv); sharedElements.put(FiveShareNormalAcitivty.PIC, view); } else { names.clear(); sharedElements.clear(); } } } };
@Override public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) { super.onMapSharedElements(names, sharedElements); String newTransitionName = gankMeizis.get(imageIndex).getUrl(); View newSharedView = mRecyclerView.findViewWithTag(newTransitionName); if (newSharedView != null) { names.clear(); names.add(newTransitionName); sharedElements.clear(); sharedElements.put(newTransitionName, newSharedView); } } });
@Override public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) { super.onMapSharedElements(names, sharedElements); String newTransitionName = meizis.get(imageIndex).getImageurl(); View newSharedView = mRecyclerView.findViewWithTag(newTransitionName); if (newSharedView != null) { names.clear(); names.add(newTransitionName); sharedElements.clear(); sharedElements.put(newTransitionName, newSharedView); } } });
@Override public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) { super.onMapSharedElements(names, sharedElements); String newTransitionName = doubanMeizis.get(imageIndex).getUrl(); View newSharedView = mRecyclerView.findViewWithTag(newTransitionName); if (newSharedView != null) { names.clear(); names.add(newTransitionName); sharedElements.clear(); sharedElements.put(newTransitionName, newSharedView); } } });
@Override public void onThumbnailBitmapReady(Object taskKey, MediaUtils.ImageProperty imgPro, Bitmap bm) { if (mIsDestroyed) { return; } if (taskKey == mPhotoThumbnailGrid) { ImageView img = (ImageView) mPhotoThumbnailGrid.findViewWithTag(imgPro); if (img != null && bm != null) { img.setImageBitmap(bm); } } else if (taskKey == mPhotoBunketList) { if (mPhotoBunketList.isShowing()) { mPhotoBunketList.setImageBitmap(imgPro, bm); } } }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) { if (isReentering) { WallpapersFragment frag = (WallpapersFragment) getFragmentManager().findFragmentByTag("page:" + mPager.getCurrentItem()); final RecyclerView recyclerView = frag.getRecyclerView(); View item = recyclerView.findViewWithTag("view_" + reenterPos); View image = item.findViewById(R.id.image); names.clear(); names.add(image.getTransitionName()); sharedElements.clear(); sharedElements.put(image.getTransitionName(), image); isReentering = false; } } });
View newSharedElement = mRecyclerView.findViewWithTag(newTransitionName); if (newSharedElement != null) { names.clear();
@Override @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) { if (sharedElementReturnPosition != -1 && album != null && sharedElementReturnPosition < album.getAlbumItems().size()) { String newTransitionName = album.getAlbumItems().get(sharedElementReturnPosition).getPath(); View layout = recyclerView.findViewWithTag(newTransitionName); View newSharedElement = layout != null ? layout.findViewById(R.id.image) : null; if (newSharedElement != null) { names.clear(); names.add(newTransitionName); sharedElements.clear(); sharedElements.put(newTransitionName, newSharedElement); } sharedElementReturnPosition = -1; } else { View navigationBar = findViewById(android.R.id.navigationBarBackground); View statusBar = findViewById(android.R.id.statusBarBackground); if (navigationBar != null) { names.add(navigationBar.getTransitionName()); sharedElements.put(navigationBar.getTransitionName(), navigationBar); } if (statusBar != null) { names.add(statusBar.getTransitionName()); sharedElements.put(statusBar.getTransitionName(), statusBar); } } } };
String newTransitionName = sharedElementViewHolder.getAlbum().getAlbumItems() .get(sharedElementViewHolder.sharedElementReturnPosition).getPath(); View layout = sharedElementViewHolder.nestedRecyclerView.findViewWithTag(newTransitionName); View newSharedElement = layout != null ? layout.findViewById(R.id.image) : null; if (newSharedElement != null) {