Bruno Abreu
Bruno Abreu

Reputation: 3

TextView TextSize - User preference vs scale independent pixels

When we define a size of the text on a TextView using the sp as measure but the android user preference for font size is set to large, which of the configuration has preference over each other?

Upvotes: 0

Views: 71

Answers (1)

ilker
ilker

Reputation: 310

If you use "dp" instead of "sp", your text size won't change upon android users font size preference. Android Studio may suggest for using "sp". But you may use "dp" on textSize anyway.

Upvotes: 1

Related Questions