Android Question different type and size text in different devices

renzino

Member
Licensed User
Longtime User
Hi, once I've installed my app in different devices, I noted that in some of them (it isn't a matter of brand, it seems) non only the size but also the type of the text is different. How can i define a unique font and size for all devices?
 

Peter Simpson

Expert
Licensed User
Longtime User
Hello,
1. Create different layouts (2 should do it) in the designer. 1 for 7" - 10"+, and the other for 6" and less.
2. Try using the Anchors the in designer with the designer script.

I personally create 2 layouts (option 1), and also I play about with the designer script too, I prefer using percentages even though Erel will clearly say that I shouldn't, but it works just fine for me :)

First read this https://www.b4x.com/android/forum/t...creens-tips-and-best-practices.17647/#content
Now look at this https://www.b4x.com/android/forum/threads/custom-view-autotextsizelabel.30642/#content
 
Upvote 0
Top