
ソース明細:
Menu mainMenu = new Menu();
Canvas canvas = new Canvas();
canvas.setBackgroundColor("#f0f0f0");
canvas.setWidth100();
canvas.setHeight100();
MenuItemSeparator separator = new MenuItemSeparator();
MenuItem item1 = new MenuItem("Item1");
MenuItem item2 = new MenuItem("Item2");
MenuItem item3 = new MenuItem("Item3");
mainMenu.setData(item1, separator, item2, separator, item3);
canvas.setContextMenu(mainMenu);
canvas.draw();
0 件のコメント:
コメントを投稿