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
New Contributor
Posts: 6
Registered: ‎01-11-2011
My Device: Not Specified

actionContent styling

I have some buttons in the actionContent section of my View and I'm wondering how i can style the particular buttons.

 

i've discovered mobile|ActionButtonSkin and mobile|ActionButton in the CSS but nothing that will let me change the :down action styling.

 

Anyone else do this?

 

thanks

New Developer
Posts: 4
Registered: ‎01-14-2011
My Device: Not Specified

Re: actionContent styling

The ActionButtonSkin uses a pair of fxg files to define the up and down skins:

 

 

    public function ActionButtonSkin()
    {
        super();
        upBorderSkin = ActionButton_up;
        downBorderSkin = ActionButton_down;
    }

 

so if you extend the ActionButtonSkin and define your own fxg's to use for the up/down states then in CSS you can apply the custom skin to the buttons (thanks to killerspaz for this):

 

 

 

s|ActionBar s|Group#actionGroup s|Button{
	skinClass:  ClassReference('com.skins.MyCustomSkinClass');
}

 

Hope this helps.

kevin