各行にアイコンとテキストが付いたカスタマイズされたListFieldがあります。行に背景画像を追加するにはどうすればよいですか(drawListRow()
メソッド内)。
1 に答える
1
私はそれがこのようなsmthであるべきだと思います:
public void drawListRow(ListField listField,
Graphics graphics, int index, int y, int width) {
Bitmap bg = <here is the code to get your Bitmap for bg>;
// probably load that bitmap once in ListField constructor
// to speed up the drawListRow()
graphics.drawBitmap(0, y, bg.getWidth(), bg.getHeight(), bg, 0, 0);
}
于 2011-04-20T15:05:56.200 に答える