Etienne Lawlor
Etienne Lawlor
I did not fix this @gaoneng102 , I am hoping that @alexjlockwood can provide some insight.
@gaoneng102 which answer is it in that stack overflow post : (http://stackoverflow.com/questions/8785221/retrieve-a-fragment-from-a-viewpager) ?
@gaoneng102 can you explain how this fixes the shared element return transition?
I just tried this ``` java @Override public void setPrimaryItem(ViewGroup container, int position, Object object) { // super.setPrimaryItem(container, position, object); // currentDetailsFragment = (GalleryDetailsFragment) object; currentDetailsFragment = (GalleryDetailsFragment) getRegisteredFragment(position); super.setPrimaryItem(container,...
Thanks. This seems to work a little bit better. But if I stress test it, it ends up doing a massive garbage collection. So I don't know what is leaking...
You need to set the currentItem of the ViewPager to the appropriate int. You also need to postponeentertransition until the image in fragment B has finished loading.
Yep I don't see this called anywhere.
Can you give me some context of what you are trying to do? are you clicking a button that then calls setPosition() in the DiscreteSlider?
Do you mind sharing a screenshot?
can I close this issue?