I want to specify my own text size in my application, but I am having a problem doing this.
When I change the font size in the device settings, the font size of my
If units used are SP, not DP, and you want to override system font scaling, all you do is override one method in activity - see this post.
resources.updateConfiguration is deprecated and buggy (on Oreo I had issues with formatted text).