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 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