0
BlackBerryのListField行の背景として垂直グラデーションを表示したいとします。私はこれを達成するためにshadedFillPath機能を使用しますが、失敗している:Blackberryの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);