Problem with designer layout...

select

Member
Licensed User
Longtime User
Hello, I've a :sign0104: problem with the designer and application layout.

I've made a little app with same buttons and labels.

When I connect the designer with my tablet and in the "Abstract Designer" I check "Match Chosen Variant" I see in realtime a correct layout of my application.
So I make e new variant with the same resolution of my tablet but when I compile and launch my application, the layout is not correct, all Views are not aliegned.

I don't understand why this happens...:sign0085:
 

select

Member
Licensed User
Longtime User
tnx for the reply.

The problem is when I build the layout of my application.

For example, if I put a button in a place (in the abstract designer configured with the resolution of the tablet) when I run the project on the tablet this button isn't where I put it in the abstract designer.

I used in the code the properties "SetLayout" like this:

B4X:
Label1.SetLayout (0%x,34%y,47%x,28%y)

And it works for different resolution. In fact if I try my app on a phone and on a tablet, I see two perfect identical scaled layout... but all views are not in the position of the abstract designer...
 
Upvote 0
Top