Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to align data in textview

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have textview as below.anyway the data shows top of the textview.I need to center the data in textview .How to do thiss?

 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read the API: http://developer.android.com/reference/android/widget/TextView.html

Towards the top of each View element there is an XML Attributes section which describes the attributes you can use when making layouts. What are available for TextView?
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case you haven't figured it out yet: the answer to many of your questions will be easy to find if you just read the API.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic