<TextView
android:id="@+id/textView"
android:layout_width="20dp"
android:layout_height="wrap_content"/>
나는 두 문자열이 있습니다방법 사용자 정의 텍스트 뷰 안드로이드의 setText()
"Text one here"
"Text two here"
방법 사용자 정의 텍스트 뷰는 문자열 2 2 개 라인, 1 호선에만 문자열 1을 위해, 그리고 2 호선, 폭 경우가 있습니다
내 텍스트 뷰의 폭이Text one...
Text two...
때문에 : 텍스트 뷰의 충분한
처럼 "..."가 표시됩니다하지 그 후
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="2"
android:lines="2"
/>
당신이 여러 문자열로 textView.setText()
를 전달할 수 있습니다 : 너무 짧은, 나는 그것을 추적 할 수없는 가망
내 textview 너비가 너무 짧아서 전체 문자열을 표시 할 수 없습니다. –
내 textview 너비가 너무 짧습니다. 표시 할 문자열이 두 개가되어야합니다. –
줄 1 만 string1, 줄 2 만 줄 2, 줄은 표시하지 않습니다. 충분할 것입니다 "..." –