This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Android and the fly likes Aligning Text in a EditText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "Aligning Text in a EditText" Watch "Aligning Text in a EditText" New topic
Author

Aligning Text in a EditText

Robert Darling
Ranch Hand

Joined: Jun 21, 2008
Posts: 100

Hi,

I have the following component in my main.xml


How do i align the text to the right , as it is aligned to the left by default.
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

android:gravity="right"


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Aligning Text in a EditText
 
It's not a secret anymore!