Emulator is not updating the Layout from the Designer

voiD

Member
Licensed User
Longtime User
Hey,

i got the following Problem:

I just started to build an UI for a new Project but the Emulator does not refresh the design. I tried everything like, reconnect to B4A, restart my laptop, but nothing works for me.
I use the feature of the design script for practice

I use the emulator instead of the Abstract designer because it is more accurate for me.

Here is a Link to an screenshot from the abstract designer and the emulator, where you can see what i mean:
http://abload.de/img/unbenanntdzaj0.jpg

And here is the code from the Design Script:
B4X:
AutoScaleAll

btn_choose.HorizontalCenter = 50%x
btn_choose.VerticalCenter = 50%y

btn_new.HorizontalCenter = 50%x
btn_new.VerticalCenter = 50%y

lbl_choose.HorizontalCenter = 50%x
lbl_choose.VerticalCenter = 50%y

spn_Project.HorizontalCenter = 50%x
spn_Project.VerticalCenter = 50%y

btn_choose.Height = 48dip
spn_Project.Height = 48dip
btn_new.Height = 48dip
btn_new.Width = btn_choose.Width

spn_Project.Bottom = btn_choose.Top - 4dip
lbl_choose.Bottom = spn_Project.Top - 4dip

btn_new.Top = btn_choose.Bottom 
btn_new.Left = btn_choose.Left

I hope cou can help me :S

-voiD
 

voiD

Member
Licensed User
Longtime User
Does your UI look correct in the UI Cloud?

Yes, there is everything correct, but i cant upload every minute a UI to the UI cloud that is not a solution for me

I also tried it with the B4ABridge to my SGS4 and there is the same problem, it does not update..

-voiD
 
Upvote 0

voiD

Member
Licensed User
Longtime User
A little update from me:

I tried now many things and now it works for the moment.
Here is a Screen:
http://abload.de/img/workedzguzf.jpg

Things i tried to get it working:
  • renamed all Elements
  • completely rebuild the UI and after every command i tested it
  • instead of Button.Bottom i used a %y value and after that i reused Button.Bottom
  • completely organized the code new

Maybe the Designer got some Problems with the Bottom, Top etc. Values
I dont know

But now it works like i wanted it :sign0060:

-voiD
 
Upvote 0
Top