Burke Murray
Burke Murray

Reputation: 11

textSize gets scaled on droid but shouldn't be

I have specified textSize="3mm" but when I run the code on the droid the text is much smaller. I looks like the size has been specified in px. I am using minSdk=4 and anydensity = "true". So it seems like if I ask for 3mm I should get 3mm, right?

Thanks in advance.

Upvotes: 0

Views: 114

Answers (2)

Romain Guy
Romain Guy

Reputation: 98521

There were problem with the Droid display drivers reporting the wrong density. This made units like mm not work properly.

Upvotes: 1

Cheryl Simon
Cheryl Simon

Reputation: 46844

Android recommends using sp (scale independent) units for text sizes. Linky

Upvotes: 1

Related Questions