gilgoldzweig / EasyTabs

https://gilgoldzweig.github.io/EasyTabs/
MIT License
49 stars 12 forks source link

Tabs disappears when switch fragments #8

Open darenpaten opened 7 years ago

darenpaten commented 7 years ago

Hello. I have been using EasyTabs for quite a while now and it truly is a great work. But recently I have used it in a fragment, but the problem is that whenever I switch to other fragments and then come back to the fragment containing the tabs, the tabs just disappears along with whatever were in them. It is just blank. What can I do to resolve this? Please respond as soon as possible. Thank you!!

gilgoldzweig commented 7 years ago

re we talking about fragments inside the tabs?

On Sun, Jun 4, 2017, 22:26 Tavassen Patenaderin notifications@github.com wrote:

Hello. I have been using EasyTabs for quite a while now and it truly is a great work. But recently I have used it in a fragment, but the problem is that whenever I switch to other fragments and then come back to the fragment containing the tabs, the tabs just disappears along with whatever were in them. It is just blank. What can I do to resolve this? Please respond as soon as possible. Thank you!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gilgoldzweig/EasyTabs/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/APvt3Dv7zndJ3VHqBxNt4YjpPu6ypE6Uks5sAwTZgaJpZM4Nvdzm .

darenpaten commented 7 years ago

No, fragments of a navigation drawer. Whenever I switch to other fragments in the navigation drawer and then come back to the one containing the tabs, the fragments in the tabs disappears.

gilgoldzweig commented 7 years ago

So you're not inflating the parent of the easytabs view properly

On Sun, Jun 4, 2017, 22:33 Tavassen Patenaderin notifications@github.com wrote:

No, fragments of a navigation drawer. Whenever I switch to other fragments in the navigation drawer and then come back to the one containing the tabs, the fragments in the tabs disappears.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/gilgoldzweig/EasyTabs/issues/8#issuecomment-306061754, or mute the thread https://github.com/notifications/unsubscribe-auth/APvt3Gg0K9ibqX5ppG6C5h5U8kcyC-zdks5sAwaKgaJpZM4Nvdzm .

darenpaten commented 7 years ago

I was just using the default code that is generated by Android Studio for the Navigation Drawer. Do you have any idea for how I can fix this?

gilgoldzweig commented 7 years ago

Don't ever use the generated code it's bad read online on how to build it and do as follow

On Sun, Jun 4, 2017, 22:40 Tavassen Patenaderin notifications@github.com wrote:

I was just using the default code that is generated by Android Studio for the Navigation Drawer. Do you have any idea for how I can fix this?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/gilgoldzweig/EasyTabs/issues/8#issuecomment-306062214, or mute the thread https://github.com/notifications/unsubscribe-auth/APvt3HnkInJWqWPDBY_7kpm6QhJbwkAaks5sAwhFgaJpZM4Nvdzm .

lucasharada commented 7 years ago

@darenpaten Any solution for this? I'm having the same issue.

Vuyiswamb commented 7 years ago

i solved the Problem today through the help of the post https://stackoverflow.com/questions/27142850/tab-content-disappeared-after-change-page ` use ChildFragmentManager

adapter = new CustomPagerAdapter(ChildFragmentManager, fragmentList, titles);`