title: Show number of lines in text editor
body: <p>I want to make text editor in which I want to show <code>number of lines</code> wrote shown at left side of screen </p>
  
  <p>Like in this picture the number of lines wrote in edit text shown like 1,2,3,etc  </p>
  
  <p><a href="https://i.stack.imgur.com/OLiIS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OLiIS.png" alt="enter image description here"></a></p>
  
  <p>I also want when user scroll up or down the number of lines also scroll. Advance thanks </p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.osama.cryptofmroot.extras.TextEditorActivity"&gt;
  
  
      &lt;android.support.v7.widget.AppCompatEditText
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="@string/type_here"
          android:inputType="textMultiLine"
          android:paddingLeft="16dp"
          android:paddingRight="16dp"
          android:paddingTop="16dp"
          android:paddingBottom="16dp"
          android:id="@+id/editor_area"
          android:backgroundTint="@android:color/transparent"
          /&gt;
  
      &lt;/ScrollView&gt;
  </code></pre>