나는 안드로이드 개발에 아주 익숙하다. 나는 긴 텍스트를 입력하면 다음 라인이 오지 않아야하는 텍스트 필드를 만들려고한다.텍스트가 길면 텍스트 필드가 다음 라인으로 오는가 어떻게 멈추는가
현재 텍스트가 너무 길면 줄 바꿈이오고 텍스트 줄의 높이를 줄이는 다음 줄로 이동합니다.
<EditText android:id="@+id/edit_message"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/edit_message"
android:inputType="textMultiLine"
android:gravity="top"/>
제발 좋습니다.
문제를 추가는 안드로이드에 있습니다 : inputType = "textMultiLine"?? –
단어 줄 바꾸기를 원할 경우 텍스트를 스크롤 가능하게하려고합니다. –
예 .. 'inputType = "Multiline"'...을 제거하십시오. – ASP