简体   繁体   中英

Customizing Flex (4) Tabbar

I 'm new to Flex (4) and just learning by doing! Recently i got the requirement to make a tabbar look like the following (got from a known site)

替代文字

I think i have to use a skin!? If yes how to achieve this? Asking because this component has buttons in it!

Thanks in advance

There is a spark TabBar component in Flex 4.

Create a new Skin for the TabBar this is based on the default spark.skins.spark.TabBarSkin

In this skin, you will see there is a DataGroup component that displays buttons. These buttons are the TabBar buttons. So you need to change the Skin of these buttons :

<s:ButtonBarButton skinClass="YourOwnBlackTabBarButtonSkin" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM