我需要制作一个像这样的屏幕:
我需要添加到我的代码中的唯一一件事就是将背景图像放在这些按钮后面。
这是我到目前为止所拥有的:
public class PruebaScreen extends MainScreen{
public PruebaScreen(){
LabelField title = new LabelField("Screen Title");
title.setPadding(40, 0, 20, 60);
BitmapField btn1 = new BitmapField(Bitmap.getBitmapResource("btn-1.png"));
btn1.setPadding(2,0,3,0);
BitmapField btn2 = new BitmapField(Bitmap.getBitmapResource("btn-2.png"));
btn2.setPadding(2,0,3,0);
add(title);
add(btn1);
add(btn2);
}
}
我应该如何将这两个按钮放在背景图像上?图像不应占据整个屏幕。
提前致谢。