title: How can I set a multiline TextView?
body: <p>I have a <code>TextView</code> in <code>Android</code> that shows the information that it's retrieved from a database so I don't know how much lines will be used for show the information.</p>
  
  <p>This is my <code>TextView</code>:</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/lblInfo"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginLeft="10dp"
      android:layout_marginTop="10dp"
      android:inputType="textMultiLine"
      android:textAppearance="?android:attr/textAppearanceMedium"
      android:textSize="15sp" /&gt;
  </code></pre>
  
  <p>And what I tried it's to put the property <code>android:inputType="textMultiLine"</code> but it gives to me an advice:</p>
  
  <blockquote>
    <p>Attribute <code>android:inputType</code> should not be used with <code>&lt;TextView&gt;</code>: Change element type to <code>&lt;EditText&gt;</code>?</p>
  </blockquote>
  
  <p>I searched on Internet but in all answers they know the maximum lines that they need, so they use the property <code>android:maxLines="the maximum of lines they want"</code> or <code>android:lines="the total of lines that the TextView has"</code> but I don't want that because I don't know how much lines I will have in my <code>TextView</code>.</p>
  
  <p>How can I make a <code>TextView</code> with an <strong>undefined</strong> number of lines?</p>
  
  <p>Thanks in advance!</p>