Android Question TabStripViewPager add/remove pages in runtime

EvgenyB4A

Active Member
Licensed User
Longtime User
Is it possible to add/remove pages in TabStripViewPager at runtime rather than via LoadLayout?
 

EvgenyB4A

Active Member
Licensed User
Longtime User
Why is it mistake to load views by code in this case? If it needs to display the dynamic quantity of icons on pages of tabstrip, the pages quantity depends on icons quantity. Is there any other solution?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Generally speaking it is easier to use the designer to create a flexible layout. However there are cases where it is better to create the layout (or some of it) programmatically.
If it needs to display the dynamic quantity of icons on pages of tabstrip
Sounds like a case where it is better to create the layout programmatically.
 
Upvote 0
Top