Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Android
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Tim Cooke
paul wheaton
Sheriffs:
Paul Clapham
Liutauras Vilda
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Piet Souris
Himai Minh
Bartenders:
Forum:
Android
how to align data in textview
shawn peter
Ranch Hand
Posts: 1325
1
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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?
<TextView android:id="@+id/ThirdText" android:layout_width="100dp" android:layout_height="100dp" android:background="@drawable/textlines" android:text="Third" > </TextView>
Steve Luke
Bartender
Posts: 4179
22
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 4179
22
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Steve
His brain is the size of a cherry pit! About the size of this ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
list view problem
Fail to Invalidate a Dialog
Add label at the top of view
Guidance in reference to splitting up this class to manageable parts
can't we add two chicld elements to HorizontalScrollView
More...