title: How to create a custom EditText layout?
body: <p>I want to create an EditText like  the Image below.</p>
  
  <p><a href="https://i.stack.imgur.com/ed2RZ.jpg" rel="nofollow noreferrer">This is what I want to achieve</a></p>
  
  <p>This is my code (in the xml file of the layout):</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;EditText
              android:id="@+id/newThoughtThoughtText"
              android:layout_width="match_parent"
              android:layout_height="150dp"
              android:layout_marginTop="5dp"
              android:layout_marginBottom="5dp"
              android:background="@drawable/lines"
              android:gravity="top"
              android:hint="@string/thought_first_text"
              android:inputType="textMultiLine"
              android:maxLines="15"
              android:textColor="@color/color_gray"   /&gt;
  </code></pre>
  
  <p>I have created a custom drawable layout file. But this only enables me to have one line at the end, and I need several lines inside the EditText.
  How can I do this?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;stroke
              android:width="1dp"
              android:color="@color/color_gray" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>