S select Member Licensed User Longtime User Jun 21, 2012 #1 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:
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:
Erel B4X founder Staff member Licensed User Longtime User Jun 21, 2012 #2 I recommend you to use only the standard variant. See the tutorial about multiple screens in my signature. Upvote 0
I recommend you to use only the standard variant. See the tutorial about multiple screens in my signature.
S select Member Licensed User Longtime User Jun 21, 2012 #3 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: Code: Copy 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
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: Code: Copy 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...
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2012 #4 Make sure that the abstract designer is set to the same layout as the device you are testing with. Upvote 0