Blaze Mathew
Blaze Mathew

Reputation: 185

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?

Upvotes: 0

Views: 684

Answers (2)

Dhaval Solanki
Dhaval Solanki

Reputation: 4705

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

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

Upvotes: 0

Pooya
Pooya

Reputation: 6126

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

Upvotes: 2

Related Questions