简体   繁体   中英

flex mobile using badges in elements

Is there a way to display so called badges in Flex elements?

With badges I mean the little red circles with a number in it which are used to display the amount of new items in a inbox by example.

I want to display badges in a flex list or tabbed item.

Is this core functionality of Flex?

You can definitely do this in Flex, but it will likely (without seeing your designs, etc) require implementing a custom item renderer for the list. For an example of doing this for a Flex-based web or AIR app, look here . Also, you will likely want to read up on Flex 4 skinning for writing a custom skin for your list item renderers, as well as perhaps the list itself. Additionally, if you are, as implied by your tags, writing a flex mobile app, you'll want to read up on building mobile item renderers as they differ in subtle, but important ways from standard web-based Flex or desktop AIR apps.

The short answer, then, is yes, but you will likely need to write some custom code to get things exactly the way you want them, styling-wise and behaviorally.

How did you do? I use the next snippet for a badge in a tabbed item. http://blog.aboutme.be/2011/10/28/flex-mobile-tabbed-view-navigator-button-badge/

I hope it helps you.

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