Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top