我已經搜索,但沒有找到任何解決方案,我只是它的創建問題。當我插入它說它非法的論點,並沒有開始。黑莓背景圖片?
Bitmap bitmap = Bitmap.getBitmapResource("Background.png");
this.getMainManager().setBackground(
BackgroundFactory.createBitmapBackground(bitmap)
);
它不起作用。
感謝您的幫助!它的工作。
final Bitmap top = Bitmap.getBitmapResource("your background image.png");
final VerticalFieldManager top_ = new VerticalFieldManager(Manager.NO_HORIZONTAL_SCROLL | Manager.NO_HORIZONTAL_SCROLLBAR | Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR | Field.USE_ALL_WIDTH){
public void paint(Graphics graphics) {
graphics.drawBitmap(0, 0, top.getWidth(),
top.getHeight(), top, 0, 0);
super.paint(graphics);
}
};
現在你所有的字段添加到這個top_ - 只是我的路徑
想要將此字段添加到該圖片嗎? – Signare
不,我只是想設置一個背景 –
我的意思是會有標籤和這個背景的一些領域infront。 –