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


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: 58
Registered: ‎02-13-2009
My Device: Not Specified

BB10 DropDown customization

Hi,

I have seen a similar post but is not updated for BB10 or sorry if I missed it and will be greatful if you can point me in the right direction.

 

Problem:

 

I could customize the list items size and font and other aspects of the DropDown using a custom cell renderer which extends DropDownCellRenderer and using the setListSkin() method on the DropDown, but I am unable to customize the label font and size of the very first item that appears by default. I guess this is the button aspect of the drop down but I could not apply any text customization.

 

Although I see there is setButtonSkin() method that can make use of a custom skin which extends UISkin but however that deals with the look & feel of the button and not the text size is my assumption. Is that correct? However my only issue is with the text size.

 

In a similar post I have seen __button of the DropDown class by subclassing it but this seems to be inaccessible in latest BB 10 SDK.

 

Any ideas how to go about it??

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

Re: BB10 DropDown customization

I have not tried it to this, but try using CSS with ThemeGlobals to set the font size. We hope the documentation will improve to let people know what these elements are, so maybe from RIM could give you a hint on the CSS path to the button font size is.
Highlighted
Developer
Posts: 58
Registered: ‎02-13-2009
My Device: Not Specified

Re: BB10 DropDown customization

thank you, yeah I have already tried couple of variations with CSS ThemeGlobals but looks like the basic outer aspects such as Tile bar height,width and label text size etc can be adjusted but not for complex controls such as custom drop down etc or as you have appropriately said RIM need to provide the path to the button font size.

 

Still keeping my hopes high before my app release if I could get any workaround by then that would be great otherwise I can live with it..I guess..