저는 현재 앱을 개발 중이며 아이스크림 샌드위치에 대한 테스트를 실시하여 속성을 사용할 때 이상한 동작을 발견했습니다. android : ellipsize = "end" 그것은 점 뒤에 문자를 추가합니다. 이 버그로 인해 견과류가 차고 아이스크림 샌드위치에만 나옵니다. 내가 previous thread about this을 보았지만 그곳에 있던 수정 사항이 도움이되지 않았습니다. 어떤 아이디어,하지만 안드로이드 4.0에 대한 보고서, 어쩌면? 내 코드는 내가 어떻게 든 아이스크림 샌드위치를 그릇 치고있다. 타원형 아이스크림 샌드위치가 추가되었습니다 [
<LinearLayout
android:id="@+id/mainTitleLayout"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="0.36"
android:orientation="horizontal"
android:weightSum="1" >
<TextView
android:id="@+id/mainTitle"
android:layout_width="135dp"
android:layout_height="wrap_content"
android:layout_marginLeft="62dp"
android:layout_marginTop="4dp"
android:layout_weight="0.53"
android:editable="false"
android:ellipsize="end"
android:gravity="center_vertical|center_horizontal"
android:singleLine="true"
android:textColor="#fff"
android:textSize="26sp"
android:textStyle="bold"
android:width="125dp" >
</TextView>
</LinearLayout>
는 내가 1.6 실제로, 텍스트 뷰에서 사용자 지정 글꼴을 사용하여 비슷한 문제가 있었다
TextView title = (TextView) act.findViewById(R.id.mainTitle);
title.setTypeface(Utils.font);
title.setText(detailTitle);
일부 임의의 텍스트로 LinearLayout에서 테스트했지만 텍스트가 예상대로 잘 렸습니다. 3 개의 점 뒤에는 다른 문자가 없습니다. TextView에 넣은 텍스트와 그 텍스트를 어떻게 넣을 수 있습니까? – Flo
TextView 주위의 LinearLayout에서도 잘 작동합니다. – Flo
이것은 나를 위해 "NEW YORK SUNGLASSES"을 일으켰습니다. 텍스트 필드에 setText를 실행해도 코드와 동적으로 관련이있을 수 있으므로 코드를 통해 텍스트를 동적으로 설정하고 있습니다. 그래도 괜찮습니까? – MikeIsrael