Android Question Difference between designer and display

ZuperMario

Member
Licensed User
Hi all, I bought B4A years ago when it was paid, but I'm only using it now.

I don't understand why in the designer, connected to an Amazon Fire 7" (5th generation) tablet (unlocked and with the play store) with the "fit to connected device" option, in the bottom right corner the designer reports a resolution of 600x976 pixels , instead in reality the resolution is 600x1024 pixels.

Also, in the designer on the tablet screen, while I'm creating the interface, all the elements actually match the preview, but when I'm running the actual program, the graphics are out of place.

Thanks for the replies.
 

Attachments

  • Cattura1.PNG
    Cattura1.PNG
    79.6 KB · Views: 56
  • 2023-04-11 13.40.25.jpg
    2023-04-11 13.40.25.jpg
    439.5 KB · Views: 54
  • 2023-04-11 13.41.33.jpg
    2023-04-11 13.41.33.jpg
    393.1 KB · Views: 63

Sagenut

Expert
Licensed User
Longtime User
The height difference is caused by the Soft Touch commands (back, home, recent).
Search for Immersive Mode in the forum to learn how to have full display usage.
As you have a paid version of B4A I would suggest you to contact the B4X Support to become a Licensed User.
This will make your future posts to be published immediately and will make Q&A faster for you and for who can answer.
 
Upvote 0

Brian Dean

Well-Known Member
Licensed User
Longtime User
Are you using anchors? If you use anchors properly you rarely need to worry about the actual pixel dimensions of the device screen.

For your top panel, for instance, you should be using the double-arrow anchor that will allow you to set the left-side and right-side margins that will adjust to any screen width.

Here is a very quick example ...
 

Attachments

  • Layout.zip
    9 KB · Views: 48
Upvote 0
Top