Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon
Accepted Solution

ActionBar and tabs and back buttons

When adding tabs and setting the backButton, the back button is removed or hidden by the tab buttons.  Is this by design or a bug?

 

this.actionbar.showTabsFirstOnBar( true );
this.actionbar.backButton = new Action( 'Back', null, {id:'back'} );
this.actionbar.addAction( new TabAction( 'Search', null, {id:'search'} ) );
this.actionbar.addAction( new TabAction( 'POI', null, {id:'poi'} ) );
this.actionbar.addEventListener( ActionEvent.ACTION_SELECTED, ActionSelected );

 

Please use plain text.
Trusted Contributor
georg22
Posts: 245
Registered: ‎11-22-2011
My Device: Blackberry Playbook
My Carrier: vodafone

Re: ActionBar and tabs and back buttons

In the UI-guidelines it is recommended to use tabs for the first level of the navigation hierarchy only, and the diagonal shape of the back button does not really fit to the tab buttons, so i guess they can not be used on the same page at all.

Maybe you can use a segemented control on the top of the screen instead.

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: ActionBar and tabs and back buttons

That is what I had to do. Not as obvious, but it works.
Please use plain text.