title: Android studio layout become blank when i enter text into multiline text
body: <p><a href="https://i.stack.imgur.com/C0lSj.jpg" rel="nofollow noreferrer">Image 1-Before entering text</a></p>
  
  <p>In this edit text view i if i enter a single word it becomes like this</p>
  
  <p><a href="https://i.stack.imgur.com/okMkb.jpg" rel="nofollow noreferrer">Image 2-after entering text</a></p>
  
  <p>XMl </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 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"&gt;
  
      &lt;TextView
          android:id="@+id/textView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginStart="16dp"
          android:layout_marginLeft="16dp"
          android:layout_marginTop="16dp"
          android:text="TextView"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;EditText
          android:id="@+id/edittext"
          android:layout_width="215dp"
          android:layout_height="0dp"
          android:layout_marginStart="16dp"
          android:layout_marginLeft="16dp"
          android:layout_marginTop="8dp"
          android:layout_marginEnd="16dp"
          android:layout_marginRight="16dp"
          android:layout_marginBottom="8dp"
          android:autofillHints=""
          android:ems="10"
          android:inputType="textMultiLine"
          android:scrollbarSize="8dp"
          android:scrollbars="horizontal|vertical"
          app:layout_constraintBottom_toTopOf="@id/button2"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toEndOf="@id/textView"
          app:layout_constraintTop_toBottomOf="@id/textView"
          tools:ignore="HardcodedText"
          tools:targetApi="o" /&gt;
  
      &lt;Button
          android:id="@+id/button2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginEnd="16dp"
          android:layout_marginRight="16dp"
          android:layout_marginBottom="16dp"
          android:text="Button"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent" /&gt;
  
      &lt;Button
          android:id="@+id/button3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginEnd="12dp"
          android:layout_marginRight="12dp"
          android:text="OK"
          app:layout_constraintBaseline_toBaselineOf="@id/button2"
          app:layout_constraintEnd_toStartOf="@id/button2" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>I have added whole XMl file
  I want to enter the text into my text field but i am not able to do it,i have tried my of the solutions before but still this issue is the same</p>