This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes how to show two lines in button or textview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to show two lines in button or textview" Watch "how to show two lines in button or textview" New topic
Author

how to show two lines in button or textview

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1070
I need to show two lines in a button or textview. Is this possible ?
Actually i need to show name and the date as below.

Sunday
25-Set-2013
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4164
    
  21

sam liyanage wrote:I need to show two lines in a button or textview. Is this possible ?

Yes
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1070
can you please tell me how to do that ?
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4164
    
  21

A Button is a TextView. How would you put text on two lines in a TextView?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1070
Thanks.
 
Don't get me started about those stupid light bulbs.
 
subject: how to show two lines in button or textview
 
Similar Threads
how to Hide textview
Guidance in reference to splitting up this class to manageable parts
how to align data in textview
Layout issues
how to add main two button to my screen