Amirhosein
Amirhosein

Reputation: 4446

Application font size dosn't change

I'm working on an application that can change the device font size. When I change the font size from my application, the change applies to the whole device and other applications but not itself. I haven't set font sizes in dp. What causes this problem?

Upvotes: 1

Views: 302

Answers (2)

Amirhosein
Amirhosein

Reputation: 4446

Finally, I found the problem. I had used

implementation 'androidx.appcompat:appcompat:1.1.0'

changed its version to 1.0.2 and it solved. I reported this issue to google: https://issuetracker.google.com/issues/144151376

Upvotes: 1

touhid udoy
touhid udoy

Reputation: 4442

Check your activity tag inside AndroidManifest.xml

if if has something similar to android:configChanges="fontScale" remove it.

<activity android:name=".MainActivity" android:configChanges="fontScale">

Upvotes: 0

Related Questions