텍스트가 너무 커서 한 줄에 들어 가지 않아서 전체 텍스트가 별도의 줄에 표시됩니다. 그러나 TextView의 폭은 텍스트 자체가 아니더라도 전체 화면을 차지합니다.크기를 조정하기 위해 여러 줄짜리 텍스트보기 크기 조정
예를 들어, 내 텍스트가 "Some long text"라고 말하면됩니다. 다음과 같이 표시 가져 오기의 :
일부 긴
텍스트
나는 wrap_content를 사용하여 텍스트 뷰를 정의했다.
<TextView
android:id="@+id/txtMainText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Some long text"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000" />
TextView의 너비를 "약간 긴"너비보다 넓게하고 싶습니다. 어떻게해야합니까?
감사
가능한 복제본 [왜 여러 줄의 TextView 채우기 내용 부모가 채우는가?] (http://stackoverflow.com/questions/7439748/why-is-wrap-content-in-multiple-line-textview-filling-parent) – EarlGrey