How to Right Justify the Text in an EditText
android:gravity was added in API level 1.
1. Create an Android project, if you don't already have one.
2. Add an EditText.
3. Open the main.xml file and add the below highlighted line of code between your <EditText> tags.
<EditText
...
android:gravity="right"
/>
4. Compile and run!
Resources:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:gravity
http://developer.android.com/reference/android/R.attr.html#gravity
http://stackoverflow.com/questions/5698305/right-align-edittext-android