当前位置: 动力学知识库 > 问答 > 编程问答 >

How to make different android values folders

问题描述:

I am doing an application where i need to set different font size for texts. So i created multiple dimens.xml in different values-XX folders.

How I have a case where I need to set different font sizes for two devices:

Motorola XT 1022 : 540px X 960px 4.2 inch density ~ 256

Micromax Bolt Q335 : 480px X 854px 4.5 inch density ~ 217

Which folders do I need to create so as to set font sizes?

网友答案:

For your Micromax Bolt Q335 : 480px X 854px 4.5 inch density ~ 217

Require to create folder "values-sw320dp-xhdpi" and put dimension

网友答案:

First you need to measure your device dimensions in DP. I think both of your devices are hdpi so the dimensions will be for example:

Motorola XT 1022: 360x640

then you can add folder:

values-360x640
分享给朋友:
您可能感兴趣的文章:
随机阅读: