Tab layout not working with view pager

I am creating an app for student . In this app i use view pager and tab layout. Add component feature is working but when i connect tab layout with view pager its not working . Here is my block and video . If anyone knowns the solution please help me and sorry for my bad english.

When i swipe the page the tab layout is not swiping

view pager also has tabs mode option in experimental properties, try it.

1 Like

I think he want the tabs to appear down.
Any way never mind i think i’ve figured it out.
The tab layout select tab property count starts from 0 and not 1.So you need to subtract position - 1 .I’ve tested and it’s working :slightly_smiling_face:
Btw, view pager select tab property starts from 1 so you need to set it to the position directly and not adding 1 to it.
Btw, kodular should make it work starting from 1 and not 0 as i think :thinking:

3 Likes

#Off-topic
Suggestion : For better UI & UX use view pager with Bottom navigation

I have used it and it looks very professional.

ezgif.com-video-to-gif

3 Likes

yeah I thought it could be that the position could be deferent between the two

i’d recommend you try and use bottom navigation looks a lot cleaner

1 Like

Thank you i will do it

Thank you for helping me , it work​:blush::blush::blush:

1 Like

Ok i will do it

you’re welcome.And as it worked please mark my answer as solution :grinning:

1 Like

I already marked it as a solution

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.