Android Question different type and size text in different devices

Discussion in 'Android Questions' started by renzino, Apr 11, 2015.

  1. renzino

    renzino Member Licensed 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?
     
  2. Peter Simpson

    Peter Simpson Expert Licensed 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 http://www.b4x.com/android/forum/th...creens-tips-and-best-practices.17647/#content
    Now look at this http://www.b4x.com/android/forum/threads/custom-view-autotextsizelabel.30642/#content
     
    lemonisdead likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice