Micah Hainline
Micah Hainline

Reputation: 14427

How can I adjust the scale-independent pixel (sp) settings in the emulator?

I want to be using sp instead of dp for text in my application, in order to allow the user (according to the documentation) to scale the text for accessibility reasons. I need to test my layouts against this, to make sure there aren't any visual problems, such as text getting cut off or hidden. My problem is, I can't find any way to adjust this setting in the emulator or in any phone I have access to. What I'm looking for is something that would let me adjust system text size preferences so that my 12sp text would appear bigger in the application. How can I do this?

Upvotes: 2

Views: 689

Answers (1)

user658042
user658042

Reputation:

I believe there is no normal user-accessible preference. See this question on the Android stackexchange. This is from 2010 but things haven't changed since then afaik.

Ok, this answer was completely false. There are two options in Android 4 (ICS) to change the text size:

  • Settings -> Display -> Font size
    This allows to set a general text size (small, medium, large, ..)

  • Settings -> Accessibility -> Large Text
    Upscales all text entries

They both modify the same setting though, so when you enable Large text under accessibility, it changes the font size to huge.

Upvotes: 3

Related Questions