Android Question Graphics and fonts

Discussion in 'Android Questions' started by stari, Mar 27, 2015.

  1. stari

    stari Active Member Licensed User

    I made application for my friend.
    Tested on HTC Wildfire and Sensation and on Samsung Galaxy TAB.Work OK.
    Then i tested on NEXUS 5 . Graphics was Ok, but fonts was too large.
    First i create label with Width and Height. The Text.Size i specify as Label.Height * 0.8.
    On NEXUS this metod dont work. Or i need somthing to recalculate ??
     
  2. klaus

    klaus Expert Licensed User

    This is wrong Label.Height * 0.8
    You need to take into accout the scale of the screen.
    This should do it:
    Label.Height * 0.8 / GetDeviceLayoutValues.Scale
     
    stari likes this.
  3. stari

    stari Active Member Licensed User

    Thks. I forget on Scale. Sory, older mann, hehehe. Thks, klaus.
     
  4. klaus

    klaus Expert Licensed User

    Don't worry, me too :).
     
    stari likes this.
  5. stari

    stari Active Member Licensed User

    Hm, i have question: can i send you my app for testing ? App is not yet finished, but i wish to know, if i can put this my work on GooglePlay and will work on all devices.
    App zipped is 0 Mb long so i can't put it on forum. Thank, Klaus.
    A, old? I'm 60.
     
  6. klaus

    klaus Expert Licensed User

    I sent you a PM.
     
    stari likes this.
  7. stari

    stari Active Member Licensed User

    ok
     
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