我正在我的 flex 移动应用程序中创建一个 spark 列表,我想在 iphone 上做一个带有角半径的列表。不幸的是,列表样式中没有cornerRadius 或简单的半径。
我在视图中调用列表:
<s:List id="language" width="100%" height="70" borderVisible="true"
change="navigator.pushView(LanguageView)" dataProvider="{languageCell}"
itemRenderer="skins.CustomCellStyle1"/>
然后我调用 itemRenderer:
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
width="100%" height="70">
<s:HGroup width="100%" verticalCenter="0" paddingLeft="15" paddingRight="15">
<s:Label text="{data.label}"/>
<s:Spacer width="100%"/>
<s:Label text="{data.content}"
textAlign="right"
color="0x046380" paddingRight="5"/>
<s:BitmapImage id="icon"
source="{data.mark}"
verticalCenter="0"/>
</s:HGroup>
</s:ItemRenderer>
那么如何在我的单元格上使用圆角半径呢?