Button b = new Button(this); b.setText("Position " + position); b.setId(position); return b;
params.setItemsFocusable(true) .setItemScreenSizeFactor(0.2) .setNumItems(100);