Issues with layout

gillano

Member
Licensed User
Longtime User
This is really getting to me!

I changed the layout that I was using to try and eliminate a problem i was having (another story). So what I did was remove all the veiws from the layout that I had and then change the name of the layout in the line
Activity.LoadLayout("Main")

changed to
Activity.LoadLayout("Main1")
since the new lay out was main1.bal

and i got this error
screenshot.png
[/IMG]

I'm really not sure how to fix this, but I figured I would switch back to the original layout by changing the code back and I saved it, tried to run it and got he same error message....this test was done after I got the same result in the previous situation I was in (experiment with a new layout and it tries to load the old one, even though i changed the code and saved)

is this a bug in v2.22? I didn't get this I the last version that I had (v2.02)
or is there something that I did wrong
 

NJDude

Expert
Licensed User
Longtime User
That means you have a view that doesn't exist on your layout, for example, say you have on the designer script:
B4X:
Button1.VerticalCenter = 50%y

But you do not have that Button on your layout.
 
Upvote 0

gillano

Member
Licensed User
Longtime User
ok I can fix that, easy
but why does it keep trying to load a layout even if I change to code to load a different one?
 
Upvote 0
Top