Android Question Please Tutorial for TextScale on Designer Script

Discussion in 'Android Questions' started by luciano deri, Jun 18, 2015.

  1. luciano deri

    luciano deri Active Member Licensed User

    Hello, is there a Example or Tutorial about TextScale on Designer Script ?
  2. NJDude

    NJDude Expert Licensed User

    There's no need for a tutorial, if you use AutoScaleAll or AutoScale in the designer scripts, the text will scale accordingly.
  3. luciano deri

    luciano deri Active Member Licensed User

    I talk about font dimension of label and edittext, i tryed a app in 5" and 10" display and component are scaled but font is same.
  4. Erel

    Erel Administrator Staff Member Licensed User

    AutoScaleAll does scale the text.

    Are you using multiple variants? In that case AutoScallAll will mostly do nothing as it compares the device screen size to the chosen variant size.
  5. luciano deri

    luciano deri Active Member Licensed User

    Where is the error? In attach you find a simple example of layout, if i see with cloud any resolution the text size is not scaled.

    Attached Files:

  6. LucaMs

    LucaMs Expert Licensed User

    Servirebbero anche le png: Annulla, Mail, Salva

    Image files missing.
  7. luciano deri

    luciano deri Active Member Licensed User

    L'ho provato meglio, funziona. Ho notato che l'height degli edit text non va indicato come costante all'interno dello script, ma solo proporzionale. Altrimenti se il font cresce, il contenuto viene tagliato in altezza.
    I felt better, it works. I noticed that the height of the edit text should not be specified as a constant in the script, but only proportional. Otherwise if the font grows, the content is cut in height.
  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