The UI cloud shows landscape mode even when it is set to set portrait only in code. If you set portrait only like I recommended, no user will ever see landscape mode on a real device
Sorry I didn't understand your question. To fix that issue just uncomment the AutoScaleAll code in the layout designer script area.
Refer to this tutorial: http://www.b4x.com/android/forum/threads/22522