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

Reply
Developer
thubalek
Posts: 318
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
Please use plain text.
Developer
peter9477
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!
Please use plain text.
Developer
thubalek
Posts: 318
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
Please use plain text.
Developer
smiley
Posts: 1,418
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.

Please use plain text.
Developer
Pumano-
Posts: 215
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"

Please use plain text.
Developer
thubalek
Posts: 318
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
Please use plain text.
Developer
peter9477
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!
Please use plain text.