| From | Sent On | Attachments |
|---|---|---|
| Doug Gordon | Sep 13, 2011 12:49 pm | |
| Dianne Hackborn | Sep 13, 2011 2:09 pm |
| Subject: | Re: [android-developers] Changing the "scaled pixel" size | |
|---|---|---|
| From: | Dianne Hackborn (hack...@android.com) | |
| Date: | Sep 13, 2011 2:09:06 pm | |
| List: | com.googlegroups.android-developers | |
This is for a global system setting, which is not currently available to users. If you want to have a local font scale setting in your app, you will need to implement that yourself.
On Tue, Sep 13, 2011 at 12:50 PM, Doug Gordon <gord...@gmail.com> wrote:
In a number of places the documentation recommends specifying font sizes in "sp" (scaled pixels) because the size can then be adjusted by "user preference". However, AFAIK there is no global way to do this. So if I want to allow users to increase or decrease the font size in my app, I assume that I'll have to implement my own app-specific preference.
The problem is that I can't see how to change the setting. DisplayMetrics has a "scaledDensity" field that is obviously the scaling factor that affects font specified in "sp", but I don't see any way to change that value. Am I missing something?
Doug Gordon GHCS Software
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
android-developers@**googlegroups.com<andr...@googlegroups.com>
To unsubscribe from this group, send email to
android-developers+**unsu...@googlegroups.com<andr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
-- Dianne Hackborn Android framework engineer hack...@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsu...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en





