MaterialViewPager icon indicating copy to clipboard operation
MaterialViewPager copied to clipboard

Switching Fragmens

Open LinkOut opened this issue 9 years ago • 6 comments

When i scroll down on a fragment and switch to other one, the second one starts from top but without the correct layout, i mean it starts like i have already scrolled...

Any suggestions?

LinkOut avatar Jun 15 '15 14:06 LinkOut

Can you please send a screenshot or video please ?

florent37 avatar Jun 25 '15 08:06 florent37

yes that's true @florent37 . i faced this situation some time.

droidwithme avatar Jun 29 '15 14:06 droidwithme

I ve noticed it when we have 2 tabs. The "left" one is scrollable (since theres content) and the "right" one is empty,(maybe only the first card over the image).

I will bring you an example ASAP.

LinkOut avatar Jun 30 '15 09:06 LinkOut

@LinkOut you still facing this issue. if not how you solved this issue

Ashok-Varma avatar Aug 03 '15 09:08 Ashok-Varma

@Ashok-Varma The problem is still there.

The solution i have found for now is not to let the other fragment be empty, since this happen only when a fragment is empty and you swith to it from a "swiped down" fragment.

LinkOut avatar Aug 03 '15 11:08 LinkOut

getSupportFragmentManager 需要替换成 getChildFragmentManager使用 Uploading image.png…

Uploading image.png…

loveRose avatar May 27 '17 09:05 loveRose