Hello everyone. It’s been a long time since I created any guide on certain topic. Today I found something interesting to share which can be helpful to many new Koders. I will show you how to create Dynamic View Pager.
Requirements: i) Dynamic Components Extension by @yusufcihan ii) View Pager Component (available in Kodular) iii) Vertical Arrangements (available in Kodular)
Do as follows:
i) On screen initialization, use ‘for each’ block and to create the inform the builder about the number of tabs you want to create.
ii) First, create the dynamic vertical arrangements (you can create other arrangements also, depending on your choice) so that we can use it as a component for view pager.
iii) Now, from ‘Any’ blocks, use ‘Add components to view’ block, so that we can add all the dynamic vertical arrangements to the ViewPager.
P.S: I did not add AIA file here because the blocks are too short and it just needed to explain the procedure. If you want, I will add the aia file here.