Android Question Copy and paste between layouts in the designer

MitchBu

Well-Known Member
Licensed User
Longtime User
I am trying to rebuild a layout capable of working on a tablet, as the original one produces a ridiculous small square. While working perfectly on a phone.

So I tried to copy and paste each view from the existing layout to a brand new one I made sure it works on a tablet. I started with a label.

I get a Java error in the line where I load the layout saying that a label has not been initialized.

It is declared in the code, but it seems something else is expected. If I add a label to the same layout, no error.

Is it possible to do what I want to do, or do I have to rebuild the (rather complex) layout view by view ?

TIA
 

Peter Simpson

Expert
Licensed User
Longtime User
@MitchBu you should create a new variant in the same layout file and use anchors for each view.

If need be you can also use a small amount of designer script to help you out, but only if need be and if you really have to do so.
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top