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

Posts: 12
Registered: ‎10-06-2012
My Device: cuenicks
My Carrier: eventphone

Hide labels in ActionBar

I would like to hide the labels underneath ActionBar icons.  I've only managed to do it by forcing the app into landscape mode.  Is there are way trigger that behaviour manually?  Setting an empty string as the label does not work, as the icons are off-centre.


(And before you accuse me of going against the UI guidelines, let me tell you that a play button with the label "play" is an outrage. Smiley Wink)

Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -

Re: Hide labels in ActionBar

did you want to do this dynamically i.e on a specific action/event?


if not, the following works fine for me:


actions: [
        ActionItem {
            id: button1
            //title: qsTr("")
            imageSource: "images/menuicons/icon_refresh.png"
            ActionBar.placement: ActionBarPlacement.OnBar
        ActionItem {
            id: button2
            title: qsTr("Play")
            imageSource: "images/menuicons/icon_play.png"
            ActionBar.placement: ActionBarPlacement.OnBar
        ActionItem {
            id: button3
            title: qsTr("Share")
            imageSource: "images/menuicons/icon_Share.png"
             ActionBar.placement: ActionBarPlacement.OnBar

 by setting an empty title in the ActionItem, i dont see any label on the button in the action bar...