title: How to make the text center vertical in a line in TextView of Android
body: <p>I have a <strong>multi-line</strong> edit text with a <strong>100dp lineSpacingExtra</strong>.</p>
  
  <p>Now the text is shown at the top of a line. And the cursor's height is same as line height , it's much taller than the text's height.</p>
  
  <p>How can I make the text shown in the center of the line?
  Or if I can adjust the padding top or padding bottom of the text in a line.</p>
  
  <p>Note:
  What I mean is NOT using android:gravity="center_vertical" to make the text center vertical in the TextView.
  I want to show the text center vertically in the line.</p>
  
  <p>The xml is as below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
      &lt;EditText
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center_vertical"
          android:background="@android:color/transparent"
          android:fadingEdge="vertical"
          android:gravity="top"
          android:inputType="textCapSentences|textMultiLine|textShortMessage"
          android:lineSpacingExtra="100dp"
          android:longClickable="false"
          android:minLines="10"
          android:paddingBottom="5dp"
          android:paddingLeft="20dp"
          android:paddingRight="20dp"
          android:paddingTop="5dp"
          android:scrollbars="vertical"
          android:text="Text ABCDE\n Line2"
          android:textAlignment="center"
          android:textSize="16sp" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Any help is appreciated.
  THX!</p>