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


Win a copy of Java 8 in Action this week in the Java 8 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: 1032
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: 3967
    
  17

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: 3967
    
  17

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
 
Similar Threads
Guidance in reference to splitting up this class to manageable parts
list view problem
Fail to Invalidate a Dialog
Add label at the top of view
can't we add two chicld elements to HorizontalScrollView