0

I've working on a aplication that show some text in several fragments, and got some problem with text sizes in diferent screens, I use three phones for testing

MOTO E density->1.5, dpheight->592.0, dpwidht->360.0
MOTO G density->2.0, dpheight->592.0, dpwidht->360.0
S3 MINI density->1.5, dpheight->533.3333, dpwidht->320.0

for target the S3 MINI I use the folder 'values-w320dp'

the logic may say that for targetting to

MOTO G should use 'values-w360dp-xhdpi'

and for MOTO E should use 'values-w360dp-hdpi'

but its not displaying well on neighter of them, it looks like its getting values from standard 'values' folder

Which is the right approach in order to point for the MOTO E and MOTO G values folders?

Thanks

2
  • Are you putting the text sizes into a dimens file inside of those folders?
    – pat
    Jan 13, 2015 at 0:43
  • yes I do, each folder has a dimens.xml with different values in sp
    – David
    Jan 13, 2015 at 0:55

1 Answer 1

0

Which is the right approach in order to point for the MOTO E and MOTO G values folders?

use,

values-sw720dp-xhdpi for moto g and values-sw480dp-hdpi for moto e

1
  • I've tested the answer and it's not working, the app running on moto e and moto g takes its values from default files (dimens.xml and strings.xml)<br/>Why use "720" besides "360"?, 720 is the pixel size, but the Docs says that should use dp
    – David
    Jan 13, 2015 at 16:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.