title: Disable Enter in editText android
body: <p>I have an EditText but I want only one line. I put lime this</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;item name="android:maxLines"&gt;1&lt;/item&gt;
  &lt;item name="android:minLines"&gt;1&lt;/item&gt;
  &lt;item name="android:lines"&gt;1&lt;/item&gt;
  </code></pre>
  
  <p>but doesn't work.</p>
  
  <p><a href="https://i.stack.imgur.com/RkZV1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RkZV1.png" alt="enter image description here"></a></p>
  
  <p>See my code:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;LinearLayout style="@style/linearInputEntryText"&gt;
      &lt;LinearLayout  style="@style/subLinearLayout"&gt;
          &lt;TextView style="@style/label" android:text="Last Name" android:id="@+id/textView2"/&gt;
          &lt;EditText style="@style/editTextEntryName" android:id="@+id/lastName"/&gt;
      &lt;/LinearLayout&gt;
      &lt;View style="@style/linearInputEntryBlack" &gt; &lt;/View&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and styles:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;style name="editTextEntryName" parent="editTextEntry"&gt;
      &lt;item name="android:maxLines"&gt;1&lt;/item&gt;
      &lt;item name="android:minLines"&gt;1&lt;/item&gt;
      &lt;item name="android:lines"&gt;1&lt;/item&gt;
      &lt;item name="android:layout_gravity"&gt;left&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>