我做了一个自定义的 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 方法中设置它?