title: Text align problem when using Arabic font
body: <p>The screenshot below displays my problem.</p>
  
  <p>The first <code>EditText</code> shows a hint in Arabic which is shifted upwards, now the second <code>EditText</code> is just for reference which shows the English version completely fine. Same goes for the <code>Button</code>.</p>
  
  <p>I have declared the string in <code>strings.xml</code> like this:</p>
  
  <pre><code>&lt;string name="ar_login"&gt;دخول&lt;/string&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/uKIQd.png" alt="screenshot of the problem"></p>
  
  <p>This is how I set the EditText's hint:</p>
  
  <pre><code>UserName.setTypeface(ArabicFont);
  String hint = getString(R.string.ar_HintUserName);
  ....
  UserName.setHint(hint);
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  I used this, but of no use: </p>
  
  <pre><code>UserName.setGravity(Gravity.CENTER_VERTICAL);
  </code></pre>
  
  <p>But with this, Text moved a little down; but i guess its not generic:</p>
  
  <pre><code>UserName.setPadding(0,15,0,0);
  </code></pre>
  
  <p>With <code>Padding</code>, <code>English</code> words move to downwards.</p>
  
  <p><strong>UPDATE 2:</strong>
  Originally arabic texts are separated; means they are shown letter by letter. So to join them, i was using this <a href="http://www.java2s.com/Open-Source/Android/UnTagged/al-qalam/org/amr/arabic/ArabicUtilities.java.htm" rel="noreferrer">Arabic Reshaper</a>. To Download Code, Check this <a href="http://blog.amr-gawish.com/110/arabic-reshaper-goes-open-source-codename-barbetter-arabic-reshaper/" rel="noreferrer">link</a></p>
  
  <p>Now when i reshape the arabic text and then set on <code>TextView</code> or as <code>EditText's</code> Hint, it got shifted upwords but without reshaping it is fine. </p>
  
  <p>So i guess, whether i have to change the reshape class OR make my textview to not split the word. But dont know where to go?</p>