내 앱에 EditText
이 있는데 키를 입력하는 대신 ime 버튼을 표시하고 다음 줄에 너무 긴 텍스트 (SMS 앱과 같이)를 이동하려면 두 줄로 표시하고 싶습니다. 지금 나는이 같은 있습니다EditText 다음 줄로 긴 텍스트 이동
<AutoCompleteTextView
android:id="@+id/name_field"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:background="@null"
android:freezesText="true"
android:hint="@string/some_hint"
android:imeOptions="actionNext"
android:maxLength="100"
android:nextFocusDown="@null"
android:lines="2"
android:ellipsize="end"
android:inputType="textImeMultiLine"
android:selectAllOnFocus="true"
android:textColor="@android:color/black"
android:textSize="16sp" />
그것은 내가 언급이 개 첫번째 특성을 가지고,하지만 난 내가 세 번째 도달 할 수있는 옵션을 불러올 수 없습니다. 예를 들어
: 내 EditText
에서 한 행 10 개 문자가있는 경우, 그와 같은 텍스트 "ABC ABCDEFGHIJK ABC의 ABCD"를 표시하려면 :
abc abcd
abc abc...
편집 : 문제가 android:inputType="textImeMultiLine"
에 보인다. 내가 그것을 android:inputType="textMultiLine"
으로 바꿨을 때, 모든 것이 잘 작동하지만 ... 나는 IME 버튼 대신에 버튼을 입력했다. 나는 피하고 싶다.
당신은 ... 당신이 정확하게 원하는 것을 더 명확하게 할 수 – Hariharan
텍스트 (때문에 한 줄에 표시 할 수없는 경우 텍스트가 너무 깁니다.), 나머지 부분을 두 번째 줄에 표시하고 싶습니다. – Seblis
'android : lines'은 .. – CRUSADER