My app has 3 categories of buttons, I want to have a tabbed panel I can use to switch between the 3 categories like in this example:
My app is a mobile app though so I can't use mx components. When I try searching for mobile tabbed navigation etc., I come up with only viewnavigator examples.
For a mobile tabbed application, you simply use the TabbedViewNavigatorApplication class:
FIRST METHOD
Your views are simply MXML components that use
<s:View>
as the root note.Reading your comments, I see that you want a tabbed bar within your view. In normal Flex, you would use a
TabBar
and attach it to aViewStack
butViewStack
is not available in mobile... so you can improvise using states, binding aTabBar
to the names of the states and hide/show panels based on state. Here is an example:SECOND METHOD*
BUT, you might still want to keep the mobile tab navigation functionality but only for one particular view. You can include a
TabbedViewNavigator
inside of your view instead of using aTabbedViewNavigatorApplication
.THIRD METHOD
You will get a nested "Action Bar" so you can disable the nested one in each of the tab views by setting
actionBarVisible="false"
Hope this helps!!!!