0
我想在黑莓中顯示垂直漸變作爲ListField Row的背景。我已經使用shadedFillPath功能來實現這一點,但沒有成功垂直漸變到黑莓ListFieldItem
int[] cols = new int[]{0xFFFFFF, 0xEEEEEE,0xEEEEEE,0XDDDDDD };
int[] xInds = new int[]{0, Display.getWidth(), Display.getWidth(), 0};
int[] yInds = new int[]{focusRect.y, focusRect.y,
this.getRowHeight()+focusRect.y,this.getRowHeight()+focusRect.y};
graphics.drawShadedFilledPath(xInds, yInds,null, cols, null);