public final class gridFieldDemoScreen extends MainScreen
{
LabelField one, two, three, four, five, six;
public gridFieldDemoScreen()
{
setTitle("gridFieldDemo");
GridFieldManager grid = new GridFieldManager(2, 3, 0);
one = new LabelField("ONE");
grid.insert(one, 0);
two = new LabelField("TWO");
grid.insert(two , 1);
three = new LabelField("THREE");
grid.insert(three, 2);
four = new LabelField("FOUR");
grid.insert(four, 3);
five = new LabelField("FIVE");
grid.insert(five, 4);
six = new LabelField("SIX");
grid.insert(six, 5);
grid.setColumnPadding(20);
grid.setRowPadding(20);
add(grid);
}
}
シンプルなグリッドビューを作成できました。画像を追加し、これらの画像にクリック機能を追加したいので、助けてください..