为什么drawFocus()画得那么慢?

时间:2011-05-30 16:17:36

标签: blackberry

我在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);
    }

}

0 个答案:

没有答案