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

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.
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..