migrec Member Licensed User Longtime User Aug 16, 2014 #1 Hey, I use the stdactionbar library with tabs in my app and my question is: is there a way to use this with multiple activities? for not getting a huge clump of code in a single activity..
Hey, I use the stdactionbar library with tabs in my app and my question is: is there a way to use this with multiple activities? for not getting a huge clump of code in a single activity..
S sorex Expert Licensed User Longtime User Aug 16, 2014 #2 you could if you put the action bar in each activity again. Upvote 0
migrec Member Licensed User Longtime User Aug 16, 2014 #3 Yeah but that doesn't work with the tabs, since when you click on TAB 2 and it opens a new activity, in that new activity it shows TAB 1, even if you by code make tab 2 first in that new activity, tabs are sorted weird. Upvote 0
Yeah but that doesn't work with the tabs, since when you click on TAB 2 and it opens a new activity, in that new activity it shows TAB 1, even if you by code make tab 2 first in that new activity, tabs are sorted weird.
S sorex Expert Licensed User Longtime User Aug 16, 2014 #4 can't you force the selected tab value to fake being on tab2? just make the the height of the bar + 1 or 2 pixels and put your stuff under it Upvote 0
can't you force the selected tab value to fake being on tab2? just make the the height of the bar + 1 or 2 pixels and put your stuff under it
migrec Member Licensed User Longtime User Aug 16, 2014 #5 Will take a look at if that works well, thanks sorex Upvote 0
migrec Member Licensed User Longtime User Aug 17, 2014 #6 Sorry but I see no way to "force" or set the highlighted tab at each activity, anyone who did something similar? Upvote 0
Sorry but I see no way to "force" or set the highlighted tab at each activity, anyone who did something similar?
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2014 #7 It is not possible to use StdActionBar with multiple activities. However you can use classes to break your code into smaller components. Upvote 0
It is not possible to use StdActionBar with multiple activities. However you can use classes to break your code into smaller components.
migrec Member Licensed User Longtime User Aug 17, 2014 #8 I see, I'll have to learn how to make a class then, thanks anyway. Upvote 0