Jaewooda
Jaewooda

Reputation: 75

TextView text size and other properties

so I was developing an app with Android Studio and I added a 'textview' box in the screen. However, when I tested the app on my device, the text was too small to read. So I tried searching on the web about how to change the text size, but I could only find videos and posts about how to change the font of the android studio product itself. Please tell me how to change the text size in the textview box. I would appreciate any help.

Upvotes: 7

Views: 23452

Answers (1)

Fady Sadek
Fady Sadek

Reputation: 1160

You can add the following property in the text view's xml and start increasing the number till you reach the font-size you want

android:textSize="20sp"

The sp here inherits the font size the user sets in his/her android device so the same font size may vary on two identical devices

Upvotes: 16

Related Questions