• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the font size of text displayed

 
Brian Wong
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am obviously very new to Android. Can anyone help me as to how to change the size of text displayed?

Thanks!

P.S. I'd also like to know if the screen size will affect the number of characters displayed in a basic text displaying function.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The specifics would obviously depend on what kind of UI component you're using to display the text; assuming it's a TextView (or one of its subclasses), then something like this would work:


Not sure I understand the second question: obviously a larger display can display more characters in a row. But screen density also plays a role - two screens of the same physical size don't necessarily support the same amount of pixels.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic