Android Question The writing in tools does not fit the size of the screens

AlfaizDev

Well-Known Member
Licensed User
Hi
I use the likes of these codes to set the tools on different screens

Example

B4X:
AutoScaleAll

LabRas.Height=10%y'-10dip
LabRas.Width=100%x'-10dip
LabRas.HorizontalCenter=50%x
LabRas.Top=10dip

CLV1.Height=87%y'-10dip
CLV1.Width=100%x'-10dip
CLV1.HorizontalCenter=50%x
CLV1.Top=LabRas.Bottom+5dip

But the problem appears in the devices
Whose screens are small
The tools get smaller and better fit
But the writing inside remains the same size and doesn't match the size of the screen
I attached a picture of the placement

 

AlfaizDev

Well-Known Member
Licensed User
There is no reason that the label height will be relative to the total height. This is likely to cause such problems.
OK
How would the correct code be for that
Thank you
 
Upvote 0

AlfaizDev

Well-Known Member
Licensed User
When I removed that code and tried the application
On another screen size
The tool does not adjust to the size of the screen, but rather comes out
Off track in height
 
Upvote 0

AlfaizDev

Well-Known Member
Licensed User
And frankly
Adjust screen by B4A
Too much easier than tuning by Android Studio
It saved us a very great effort

Which I hope will Erel work to explain explaining how to make the application fit the screens of all sizes 100%
Thank you
 
Upvote 0

kisoft

Well-Known Member
Licensed User
Longtime User
Hi
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…