Mark M. |
how can I help you today?
|
Ron B. |
I need my app to override the user setting for font size. I always want to use the default device size.
|
Mark M. |
1 sp = 1 dp at the default font size
|
Mark M. |
note that users may not appreciate your choice, though
|
Ron B. |
OK, I'll give it a try. Users won't appreciate it if I don't, I'm lining up text against a fixed image.
|
Mark M. |
then you have bigger problems
|
Mark M. |
the font size is not the same on all Android devices
|
Mark M. |
heck, the *font* is not the same on all Android devices
|
Ron B. |
Do you have any recommendations on how to approach this? It doesn't need to be exact, but small on one can't be medium on another.
|
Mark M. |
um, why not allow for word-wrap?
|
Mark M. |
I mean, you can force it to fit via AutoSizeTextView ( https://github.com/danclarke/AutoResizeTextView)
|
Mark M. |
but you may wind up with unreadable text on some screen sizes and prose combinations
|
Mark M. |
usually, you try to let the text be the size it needs to be, to match the user's desired font scale and whatever your text is, using scrolling if need be
|
Ron B. |
Thanks, I'll look into it further!
|
Mark M. |
if you have another question, go right ahead
|
Ron B. |
Signing out. Have a great evening.
|