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
Developer
Posts: 325
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

TitleBar title left padding

Does anybody have any idea how to add more space between left border of the TitleBar and text? It does not look nice for me.

 

IMG_00000004.png

 

I also suspect it is an issue in current SDK and may be fixed in next release so I don't want to do some hacks like adding nobreaking space before tittle.

 

Thanks

Tom

 

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Highlighted
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: TitleBar title left padding

I get the same, I agree it looks poor, and I believe we have no alternatives except making a custom title bar or doing the hack you suggest.

The next release isn't far off, so I suggest just making a note of this for now, and revisiting the issue once the next beta is out. I won't be surprised to see many small tweaks to positioning and style issues, requiring us to review all parts of our apps in any case.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 325
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

Re: TitleBar title left padding

Can't wait for next release...

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Developer
Posts: 1,638
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: TitleBar title left padding

would be nice to add icon to title too or even a system close or minimize/close icon.

Developer
Posts: 222
Registered: ‎11-05-2011
My Device: Z10
My Carrier: Beeline

Re: TitleBar title left padding

I tell you solution (not perfect, but work):

 

add spaces using alt codes in text area using alt+0160 (enter numbers at number keyboard at right of your desktop keyboard)

 

Looks:

 

text: "           My title"

Developer
Posts: 325
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

Re: TitleBar title left padding

As I said above: I want to avoid such a hacking. I believe that this is just temporary issue and will be solved in next SDK release. 

 

I hoped that somebody from BB will either confirm that it is an issue (and will be fixed) or suggest how to use it properly.

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: TitleBar title left padding

In any case, using Unicode escape sequences would probably be better than entering special characters using one's keyboard, if it comes to that.

Entering "\u00a0" should be equivalent to one "magic" non-breaking space entered with alt+0160, but it's clearer what it is. You'd also have the option of fine-tuning with "\u2004" (1/3 em), "\u2005" (1/4 em) or "\u2006" (1/6 em) or others.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!