title: android edit text view only 2 lines
body: <p>in my android app, i would like to set an limit of 2 lines in a edit textview.</p>
  
  <p>i set in my design:</p>
  
  <pre><code>&lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/textViewBarcode"
      android:textSize="13sp"
      android:textColor="@color/DefaultGreen"
      android:inputType="text"
      android:hint="@string/HintBarcode"
      android:textColorHint="@color/DefaultGreen"
      android:textIsSelectable="false"
      android:singleLine="false"
      android:height="20dp"
      android:editable="false"
      android:maxlines="2"/&gt;
  </code></pre>
  
  <p>but this doesn't work</p>
  
  <p>it should be possible to make one return in the textview - but no more.
  is this possible??</p>