0
期间笨拙我有黑莓5点& 6点O的问题上模拟器 标签字段变得笨拙,当我设置字体在黑莓 同一运行正常7标签字段变成字体设置
这里是我的样本代码
LabelField _lblTitle3 =
new LabelField(offerStatus,
USE_ALL_WIDTH | Field.FIELD_VCENTER |
LabelField.ELLIPSIS | Field.NON_FOCUSABLE) {
protected void drawFocus(Graphics graphics, boolean on) {
};
protected void paintBackground(Graphics graphics) {
String offerStatus = _offerObj.getCategoryStatus();
int color;
if (offerStatus.equalsIgnoreCase("Saved"))
color = Color.BLUE;
else if (offerStatus.equalsIgnoreCase("Accepted!"))
color = Color.GREEN;
else
color = Color.BLACK;
if (_isFocus) {
graphics.setColor(Color.WHITE);
} else {
graphics.setColor(color);
}
super.paint(graphics);
};
};
Font myFont = Font.getDefault();
FontFamily typeface = FontFamily.forName("Times New Roman");
int fType = Font.BOLD
int fSize = 12
myFont = typeface.getFont(fType, fSize);
_lblTitle3.setFont(myFont);
图片低于
它工作正常,谢谢 – Exhausted
非常欢迎:) – Nate