title: How to right-align text in an Android TextView or EditText?
body: <p>I have an EditText in my application. I want to align the text in it to the right instead of the default left. I tried adding </p>
  
  <pre><code>android:layout_gravity="right"
  </code></pre>
  
  <p>but this doesn't seem to work. any other suggestions please?</p>