1. Are you ready for the Galaxy S20? Here is everything we know so far!

Size problem - device same dpi, different resolutions

Discussion in 'Android Development' started by sbstorm, May 20, 2020.

  1. sbstorm

    sbstorm Newbie
    Thread Starter

    Hi everyone,

    I'm blocked with this problem and maybe you can help me. I recently started to develop mobile application and I meet a problem with the size.

    I have 2 devices: a redmi note 7 and a sony G3416.
    I have defined my elements size and fonts size in each dimens.xml files (mdpi, hdpi, xhdpi...) to support each kind of dpi and the display is correct with almost all the devices.

    In my case, the 2 devices use the xxhdpi one. But the problem is if I set the correct size for the 1st device, on the second, the size is too big. And if I reduce to fit the second, it become to small for the first one. The size is not scaling as it should be. For the information, I use the DP and SP unit correctly.

    Do you have any idea ? Below some screenshots so you can see the problem. Thanks

    upload_2020-5-20_16-22-32.png

    upload_2020-5-20_16-20-46.png
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Size problem device
  1. samjones3
    Replies:
    17
    Views:
    1,627
  2. kumaranil13k
    Replies:
    0
    Views:
    344
  3. ManojGowda
    Replies:
    1
    Views:
    878
  4. Armczbt
    Replies:
    0
    Views:
    795
  5. aifa
    Replies:
    0
    Views:
    809
  6. SowmyaMistral
    Replies:
    0
    Views:
    946
  7. toneman1
    Replies:
    2
    Views:
    640
  8. King Mustard
    Replies:
    2
    Views:
    667
  9. norweger
    Replies:
    5
    Views:
    1,331
  10. Samsung
    Replies:
    1
    Views:
    488

Share This Page

Loading...