I have a function that generates a random number. Then, I place the number in a TextView
. When the number is a single digit, it fills the TextView
perfectly, but when the number is two digits or more, it only shows a single digit because the text size is huge.
How do I automatically fit the text size to the TextView
? Something like reduce the text size so that all the number will be shown in the TextView
.