android:maxLines="2" 와
android:ellipsize="end"를 주었을때
띄어쓰기 없이 긴 문장을 썻을때 한줄만 입력이되고 ... 표시가되며
띄어쓰기나 개행을 하고 긴 문장을 입력하면 두줄이 제대로 표시가됩니다.
띄어쓰기 없이 긴문장을 썼을때도 textView의 끝에서 개행이되어 두줄이 표시가되고 ... 표시가 되게하는방법이 없을까요
몇일째 찾아봐도 답을 못찾겠습니다.
높이부분을...워랩으로..주시면 될듯 한데요.. 맨날 쓰지만..저런 문제는 없었던 기억이...
그냥 노파심에... 제가 수행한 프로젝트에서 해당 내용과 비슷한 내용으로 구현한 소스 올려봅니다.....대충 아실꺼에요^^
<TextView
android:id="@+id/notice_subject"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/notice_date"
android:layout_marginRight="14dp"
android:layout_marginTop="6dp"
android:ellipsize="end"
android:gravity="left|center"
android:lines="2"
android:textColor="#000000"
android:textSize="14sp" />
android:maxLine="2" android:lines="2"
이두가지의 차이밖에없는데 바꿔도 안되네요 ㅠ_ㅠ
어느쪽에 문제인지 도무지 감이안오네요
혹시 상위 레이아웃의 포멧도 좀 볼수있을까요?
로그인 유지
높이부분을...워랩으로..주시면 될듯 한데요.. 맨날 쓰지만..저런 문제는 없었던 기억이...
그냥 노파심에... 제가 수행한 프로젝트에서 해당 내용과 비슷한 내용으로 구현한 소스 올려봅니다.....대충 아실꺼에요^^
<TextView
android:id="@+id/notice_subject"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/notice_date"
android:layout_marginRight="14dp"
android:layout_marginTop="6dp"
android:ellipsize="end"
android:gravity="left|center"
android:lines="2"
android:textColor="#000000"
android:textSize="14sp" />