PHP Code:
protected void sublayout(int arg0, int arg1) {
super.sublayout(arg0, arg1);
final int width = getPreferredWidth();
final int height = getPreferredHeight();
setExtent(width, height);
int optX = width - (bmpField.getWidth() + 10);
int optY = (height / 2) - (bmpField.getHeight() / 2);
try {
setPositionChild(bmpField, optX, optY);
} catch (Exception e) {
}
try {
setPositionChild(left, (Constants.SCREEN_WIDTH / 2) - 20, 5);
} catch (Exception e) {
}
try {
setPositionChild(right, (Constants.SCREEN_WIDTH / 2) + 20, 5);
} catch (Exception e) {
}
}
I hope you can recognize the fields. Moreover I am deletind and adding the elements again on each response. Commenting the left and right button in above makes the bmpField visible. I tried the change in the alignment.