0
각 행에 아이콘과 텍스트가있는 사용자 정의 된 ListField가 있습니다. 행에 배경 이미지를 추가하려면 어떻게해야합니까 (drawListRow()
메서드에서).listfield 행의 배경 이미지를 그리는 방법은 무엇입니까?
각 행에 아이콘과 텍스트가있는 사용자 정의 된 ListField가 있습니다. 행에 배경 이미지를 추가하려면 어떻게해야합니까 (drawListRow()
메서드에서).listfield 행의 배경 이미지를 그리는 방법은 무엇입니까?
은 내가 이런 떨어지게해야한다고 생각 :
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);
}
가 생각이 난 두 번째 이미지 (배경 이미지)을 그릴 경우, 차단 첫번째. 그러나 배경 이미지가 먼저 그려지면 아무런 문제가 없습니다. 나는 지금 시험해 볼 것이다 ... – redline