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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 15
Registered: ‎06-02-2012
My Device: BlackBerry 10 Dev Alpha
My Carrier: Play Poland
Accepted Solution

ActionItem in OnBar only

Hi,

 

I have quik question: can I make ActionItem to show only in OnBar  and not to show in InOverflow?

 

ActionBar.placment is only a sugestion where to put ActionItem. With InOverflow it will not show on OnBar but with 3+ Actions OnBar will apear in InOverflow. But I don't need show this OnBar one more time in InOverflow. Is there any way to hide them in InOverflow?

 

Thanks

Turdidae

Developer
Posts: 1,750
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV, DTEK
My Carrier: Telekom.de, O2, Vodafone

Re: ActionItem in OnBar only


turdidae wrote:

Hi,

 

I have quik question: can I make ActionItem to show only in OnBar  and not to show in InOverflow?

 

ActionBar.placment is only a sugestion where to put ActionItem. With InOverflow it will not show on OnBar but with 3+ Actions OnBar will apear in InOverflow. But I don't need show this OnBar one more time in InOverflow. Is there any way to hide them in InOverflow?

 

Thanks

Turdidae


at the moment there's no way to hide the on-bar-visible actions from overflow

reading the cascades ui design guidelines the overflow should only contain the remaining actions not already visible on the action bar, so I think this will be fixed (hopefully beta 3)

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
QtChampion
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS, W10)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: ActionItem in OnBar only

[ Edited ]

Hi,

 

Has anyone found a workaround for this issue?

 

B4B review team asked me to remove duplicate buttons from the overflow menu.

 

When I add actions with OnBar placement, they appear on bar only. But once I add one or more actions with InOverflow placement, all OnBar actions suddenly appear in overflow menu as well. Smiley Sad

 

Changing the order of actions to add InOverflow ones first did not help. OnBar actions still appear in overflow menu, even when added later.

 

I've found another thread with suggestion to create the actions once and just modify their properties later, but this also doesn't work. I think that the placement can't be changed after adding the action.

 

Any ideas are welcome.


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 74
Registered: ‎01-08-2013
My Device: Playbook
My Carrier: NA

Re: ActionItem in OnBar only

"B4B review team asked me to remove duplicate buttons from the overflow menu."

 

This is nonsense if i understand correctly,

 

Check this link Navigation Single Screen.

 

Specifically  they say

 

"It's important to note that the action menu is displayed only if you add actions that don't use theActionBarPlacement:Smiley SurprisednBar value (or if the action bar is full, as described above). In addition, if an action menu is displayed, the menu contains all of the actions for the Page, including those actions that already appear on the action bar. Consider the following examples that illustrate this behavior"

 

So testing team wants to change cascade design ? Open a bug on blackberry Smiley Happy

 

New Developer
Posts: 14
Registered: ‎12-30-2014
My Device: Z10, Q10, Passport
My Carrier: O2 de

Re: ActionItem in OnBar only

I know this thread is old - but unsolved and i found it googling for the same problem. I know that this behavior is not itended to have with cascades but sometimes you are not the one who make the decisions.

 

My solution is to listen to the actionMenuVisualStateChanged signal and remove all the unwanted action items at state 'AnimatingToVisibleFull' and add them at 'AnimatingToHidden'. To restore all items in the original order, you have to remove all remaining items and add them in the original order again.