Search code examples
androidandroid-edittextandroid-4.0-ice-cream-sandwichgalaxy-tab

EditText showing 2 lines of text, instead of 1, despite of all properties set (only on Galax Tab 10.1, ICS)


In my application, I have an EditText, which I want to show exactly 1 line of text. It works fine on most tablets (all running ICS), however, the Galaxy Tab 10.1 displays long text in 2 lines instead of 1.

I do have all properties set as follows:

<EditText
    android:id="@+id/edt_chat_edit"
    ....
    android:singleLine="true"
    android:lines="1"
    android:maxLines="1"
    android:minLines="1" />

I assume it's a bug in the Samsung firmware; can anybody confirm it? And eventually knows a workaround for it?

enter image description here


Solution

  • You could manually set the EditText height? Not the most elegant solution, but it would probably work.