title: set cursor position of edittext in center...!
body: <p>I know this question asked many times. But none of examples work for me.<br>
  I want to set cursor position in the center through XML file.<br>
  how can I do that?? <br>
  My current cursor position display in following figure.<br><br></p>
  
  <p>My XML file code is following</p>
  
  <p>.XML file
  <br></p>
  
  <pre><code>&lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical" &gt;
  
          &lt;EditText
              android:id="@+id/sigupDisplayName"
              style="@style/editTextStyle"
              android:layout_width="match_parent"
              android:layout_height="40dp"
              android:background="@drawable/edittext_style"
  
              android:ems="10"
              android:gravity="center"
              android:hint="@string/display_name" &gt;
  
              &lt;requestFocus /&gt;
          &lt;/EditText&gt;
      &lt;/LinearLayout&gt;
  </code></pre>