0

我做了一个自定义的 LabelItemRenderer,在里面我想给 StyleableTextField 一些额外的样式。如何在不丢失继承样式的情况下做到这一点?我尝试了不同的方法,但总是得到一个错误,说必须设置 antiAliasType。

s|List.customListStyle
{
    fontFamily: Arial;
    fontSize: 18;
    contentBackgroundAlpha: 0.25;
    verticalScrollPolicy: auto;
    downColor: #CCCCCC;
}
s|List.customListStyle sw|CustomListItemRenderer
{
    paddingLeft: 20;
}

我应该如何设置我的文本字段样式,然后在 createChildren 方法中设置它?

4

1 回答 1

0

由于我无法通过使用外部 CSS 来实现这一点并且没有得到任何回复,我决定使用 setStyle。这不是我想要的,但它有效......

于 2011-11-29T11:03:55.267 回答