How do I increase the Font in textView on Android studio? I can set the font style but I can’t find the attributes to increase the Font Size
- June 2, 2022
- 319 views
- 1 vote
- 2 Answers
-
How do I increase the Font in textView on Android studio? I can set the font style but I can’t find the attributes to increase the Font Size
2
Answers
You need to add the attribute
fontSize
insideTextStyle
.Example:
Doc: https://api.flutter.dev/flutter/painting/TextStyle-class.html
as you are working in XML try this
android:textSize="xsp"
replace that ‘x’ with the size you desire ‘sp’ scales the text if you want hardcoded text size try ‘dp’