Android Question ASTab menu with pages

pacoMx

Member
Licensed User
Longtime User
Hello, I'm trying to use AsTAb with b4xpages. I have attached a barebones project where The idea is to have a bottom menu in page #2 and #3. Problem is that I can't get correct underlined icon after first click. After second click I do get correct indicator of current page.
 

Attachments

  • 3tabsExample.zip
    14.2 KB · Views: 91

Alexander Stolte

Expert
Licensed User
Longtime User
I thought you would do it that way.

Why do you want to have a separate page for each tab?

Correct would be:
-Add a panel to the form for each page you have and hide or show the right panel depending on which tab you press.
 
Upvote 0

pacoMx

Member
Licensed User
Longtime User
I am accustomed to separate between activity modules, idea to use pages is to get somewhat a more organized code (subjecvtively probably). Will have a closer look into class modules then. Thanks for your help.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
separate between activity modules
But it doesn't look good at the end, if you have to open a new page every time, just because you press a tab...

That would be like building a separate house for each room in your apartment, and you have to go into another house to get to the bedroom. Just to avoid having a lot of furniture in one house.
 
Upvote 0
Top