fd.bottom = new FormAttachment(100, -5);
fd.left = new FormAttachment(0, 5);
fd.right = new FormAttachment(100, -5);
btn.setLayoutData(fd);
Transition t = new Transition(new Transitionable() {
@Override
public void setSelection(int index) {
me.curImg = (index + 1) % me.imgs.length;
}