我在VerticalFieldManager中有一个ListField,我试图在所选项目的矩形上绘制图像。当我滚动ListField时,Bitmap绘制得非常慢,无法捕捉到我的滚动。这是我用于drawFocus()的代码:
protected void drawFocus(Graphics graphics, boolean on) {
if (on) {
XYRect rect = new XYRect();
getFocusRect(rect);
graphics.drawBitmap(rect, selectedRowBitmap, 0, 0);
}
}