File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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 liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1087
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to align data in textview