class Scr extends MainScreen {
public Scr() {
TableLayoutManager outerTable = new TableLayoutManager(new int[]
{
TableLayoutManager.USE_PREFERRED_SIZE,
TableLayoutManager.SPLIT_REMAINING_WIDTH
},0);
TableLayoutManager innerTable = new TableLayoutManager(new int[]
{
TableLayoutManager. USE_PREFERRED_SIZE,
TableLayoutManager.USE_PREFERRED_SIZE
}, Manager.USE_ALL_WIDTH);
innerTable.add(new LabelField("titleField"));
innerTable.add(new LabelField("title"));
innerTable.add(new LabelField("descriptionfield"));
innerTable.add(new LabelField("description"));
innerTable.add(new LabelField("rating field"));
innerTable.add(new LabelField("***"));
outerTable.add(new BitmapField(Bitmap.getBitmapResource("mac.png"),Field.FOCUSABLE));
outerTable.add(innerTable);
add(outerTable);
outerTable.add(new BitmapField(Bitmap.getBitmapResource("fire.png"),Field.FOCUSABLE));
outerTable.add(innerTable);
add(outerTable);
}
當我添加另一個位圖和innerTable到outerTable和outerTable到屏幕。該應用程序提供了一個運行時jvm錯誤104 「已添加到管理器的字段已經授權時」。如何添加另一行位圖圖像
當我向outerTable中添加另一個innerTable時出現問題。不是當我將位圖添加到outerTable時。
Thanksssssss。 U讓事情變得如此簡單 – Bohemian 2009-11-04 08:17:35
我編輯了我的帖子以添加一些解釋。值得再讀一遍。 – 2009-11-04 08:20:41
是的,這更好 – Bohemian 2009-11-04 09:19:02