aspose file tools*
The moose likes Android and the fly likes how to align data in textview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to align data in textview" Watch "how to align data in textview" New topic
Author

how to align data in textview

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1131
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

Joined: Jan 28, 2003
Posts: 4181
    
  21

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
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to align data in textview